Hello WP Sharks,
I am starting this post in regard to an old topic which I found on s2Member old forums:
https://www.s2member.com/forums/topic/uri-and-custom-capabilties/
I am trying to use s2-hacks.php (as is described in the old forum) in order to restrict access to some specific URIs on my site based on Custom Capabilities.
I’ve uploaded the file (s2-hacks.php) to /wp-content/mu-plugins/ which immediately brakes the site. I got HTTP ERROR 500 and the following information in the error_log:
PHP Parse error: syntax error, unexpected ‘;’ in /home/path/public_html/wp-content/mu-plugins/s2-hacks.php on line 8.
This is quite strange because on line 8 in s2-hack.php we have just this:
$allowed = FALSE;
Has anyone experienced the same and do you have an idea how to make this works, since it is very important to restrict access to certain URIs based on ccaps.
Thanks in advance for your advice!
Stefan