Search for answers:
The OptimizePress Support Site Has Moved: Click here to access the new Support site

OptimizeMember - Forcing a Specific EOT Demotion Rule

Difficulty: Advanced (Developers Recommended)

Many of OptimizeMember's Hooks/Filters make it possible to customize things in more advanced ways, which might not be available yet through the OptimizeMember UI panel in your Dashboard.

If you want to force OptimizeMember's Auto-EOT System to demote paying customers back down to a specific Role, instead of the free "subscriber" Role that OptimizeMember uses by default, you could use this hack to accomplish that.

Hack Instructions

Create this directory and file:
(these are MUST USE plugins, see:

Add this code the file and modify accordingly:

add_filter("ws_plugin__optimizemember_force_demotion_role", "my_demotion_role");
function my_demotion_role($default = "subscriber")
return /* I say it is... */ "my_custom_role";

Here's another example - in this example a level 2 or 3 users will be demoted to level 1, and level 1 would be demoted to level 0 (subscriber) level:

<?php add_filter('ws_plugin__optimize_force_demotion_role', 'my_demotion_role'); function my_demotion_role($role = 'subscriber') { if (current_user_is('optimizemember_level3') || current_user_is('optimizemember_level2')) $role = 'optimizemember_level1'; return $role; }

Didn't find an answer to your question? Contact Our Support Team (Submit a ticket)
Was this article helpful?
0 out of 0 found this helpful


Other Help Categories:

Get Started Guide

Watch our Ultimate Getting Started guide video

Pre-Sales Questions

Ask questions before purchasing our products

Login Problems

If you're having issues logging into our members hub

Accounts & Billing

Update your billing, request a refund and other accounts help

API Key Issues

Get help with licensing your site and API key issues

Membership Help

Get help creating Membership portals and courses

LiveEditor Help

If you need help using or troubleshooting the LiveEditor


Find out about the many integrations possible with OptimizePress

Affiliate Questions

Have questions about promoting OptimizePress

Clubhouse Questions

Questions about our Clubhouse Membership Subscription