Exclude page(s) from being blocked
-
I was in need of a solution that automatically blocks all pages, but still allows users to register on the site. Since this plugin does not have an “Exclude URL” feature, I changed some code to accomplish this.
In \wp-content\plugins\simple-members-only.php, Line 84, add the bold text:
if ($currenturl == $redirection || $currenturl == $redirection.'/' )
Add the following code:
if ($currenturl == $redirection || $currenturl == $redirection.'/' || strpos($currenturl, 'action=register') )
It’s a quick hack, and not update-proof, but hopefully helps someone else out. Maybe the author will integrate this feature in a later release.
- The topic ‘Exclude page(s) from being blocked’ is closed to new replies.