Logged in members restricted from protected content

Recently logged in WP site members have been unable to view content.
The content is simply protected with #0 login level in the “edit” page right hand column.

However, if one adds the shortcode [s2If is_user_logged_in()] to the page, then the pages act as before, when such shortcode was not necessary.

Is this a new and expected plugin behavior ?

Must we go back and add shortcodes to each page ? sigh…

Hi David,

No, that shouldn’t be necessary… Protecting a page with s2Member Level 0, basically is just requiring the person to be logged in.

The only explanation that comes to mind, is if the user roles were changed, and lost the access_s2member_level0 capability for some reason… https://s2member.com/kb-article/s2member-rolescapabilities/

You could use a plugin like the User Role Editor to inspect your user roles, and see if the access capability is there as it should.

Another thing you could do is reset s2’s roles/capabilities, and see if helps. WP Admin > s2Member > General Options > Membership Levels/Labels

Screenshot%202022-11-08%20at%2001-26-24%20s2Member%20General%20Options%20%E2%80%B9%20s2Member%20Membership%20Plugin%20for%20WordPress%20%E2%80%94%20WordPress

:slight_smile: