This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

DC Role


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


This section describes how to install the plugin and get it working.

  1. Upload the dc-role folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. When editing a page that you want to show content based on the users role, click on the red button in the editor and select your case. Enter the role(s) that the system should take into account and you’re all set!


Does this plugin also handle subscriptions or the adding of members?

No, it’s really only for displaying based on a users role.

Contributors & Developers

“DC Role” is open source software. The following people have contributed to this plugin.

Translate “DC Role” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • First public stable.
  • Added the dc_all_roles shortcode.
  • Added the editor button.