With DC Role you can show users information on your pages depending on their role. A lightweight, userfriendly alternative to member/subscription syst
DC Role is a plugin which can show content to users (not) belonging to a certain role they have. It is meant as a lightweight version for some kind of member/subscription system. The shortcodes can also be selected from a button in the editor, making it (hopefully) friendly to non-techies.
DC Role consists of 5 shortcodes:
[dc_role role="administrator"]content[/dc_role] shows the specified content only if the users is an administrator
[dc_not_role role="administrator]content[/dc_not_role] shows the specified content only if the user is not an administrator
[dc_roles roles="administrator,subscriber"]content[/dc_roles] shows the specified content if the user has any of the provided roles (in this case administrator or subscriber)
[dc_not_roles roles="administrator,subscriber]content[/dc_not_roles] shows the specified content if the user does not have any of the provided roles
[dc_all_roles] shows a list of all roles the wordpress installation has