Hi guys!
I like Restrict Content by Role plugin (many thanks to the authors!), it’s lightweight and suits my needs. Unfortunatelly, I came accross the same problem as mentioned above, restricted content was hidden from a menu although I left that option unchecked. Since Matt says he is bussy to take a closer look at the issue, I tried to find what’s happening there.
I found following line (#28) in the plug-in file restrict-content-by-role/php/class.MenuAccess.php:
if( 'false' === $mkdo_rcbr_hide_from_menus || is_admin() ) {
It compares $mkdo_rcbr_hide_from_menus against ‘false’ but it has ” (empty string) value when you don’t check “Hide restricted public content from menus ” in the settings. Changing the line to
if( '' === $mkdo_rcbr_hide_from_menus || is_admin() ) {
works for me, menu items are left in place. So if there is anyone looking for an instant fix, try to do this little update yourself using the plugin editor in WordPress admin. I hope this may help Matt to fix the issue in the following version of the plugin too.
Rado