Change WordPress user roles and capabilities Forums Bug Reports “no role for this site” & [user_role_editor roles=”none”] Reply To: “no role for this site” & [user_role_editor roles=”none”]

#7748
Vladimir
Keymaster

Hi,

I confirm that currently role=”none” works for the not logged-in users only – traditionally, from very begin.
From one side, registered user without role can easily get access to the content with roles=”none”, it’s enough just logout. But, many sites use this shortcode to show content for not logged-in users only, to invite to login, for example. It will be not correct to show such content for logged-in users, which does not have role at the site. Backward compatibility is very important.

What if to add something like ‘none_for_logged_in’, which will work especially for logged-in users, which does not have role for this site? Finally, it will be possible to user shortcode with parameters like roles=”none none_for_logged_in” especially for your case.