DC Role
With DC Role you can show users information on your pages depending on their role. A lightweight, userfriendly alternative to member/subscription syst …
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 4561 days ago
Is DC Role abandoned?
Possibly abandoned (last update 4561 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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
Installation
This section describes how to install the plugin and get it working.
- Upload the dc-role folder to the
/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- 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!
Frequently Asked Questions
Does this plugin also handle subscriptions or the adding of members?
No, it’s really only for displaying based on a users role.
Review feed
Screenshots
Changelog
0.3
- First public stable.
- Added the dc_all_roles shortcode.
- Added the editor button.