{"id":25021,"date":"2013-08-30T09:01:01","date_gmt":"2013-08-30T09:01:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dc-role\/"},"modified":"2013-08-30T09:01:01","modified_gmt":"2013-08-30T09:01:01","slug":"dc-role","status":"closed","type":"plugin","link":"https:\/\/tw.wordpress.org\/plugins\/dc-role\/","author":13040719,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"","stable_tag":"trunk","tested":"3.6.1","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"DC Role","header_author":"Robin Steeneken, DigiCit Webservices","header_description":"","assets_banners_color":"","last_updated":"2013-08-30 09:01:01","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.digicit.eu","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1235,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"The editor button in action."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3710,448,2153],"plugin_category":[41],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-25021","plugin","type-plugin","status-closed","hentry","plugin_tags-role","plugin_tags-subscription","plugin_tags-user","plugin_category-communication","plugin_committers-digicit"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dc-role.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n <p>DC Role consists of 5 shortcodes:<\/p>\n <ul>\n<li><p>[dc_role role=\"administrator\"]content[\/dc_role] shows the specified content only if the users is an administrator<\/p><\/li>\n<li><p>[dc_not_role role=\"administrator]content[\/dc_not_role] shows the specified content only if the user is not an administrator<\/p><\/li>\n<li><p>[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)<\/p><\/li>\n<li><p>[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<\/p><\/li>\n<li><p>[dc_all_roles] shows a list of all roles the wordpress installation has<\/p><\/li>\n<\/ul>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n <ol>\n<li>Upload the dc-role folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>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!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Does this plugin also handle subscriptions or the adding of members?<\/h4>\n <p>No, it's really only for displaying based on a users role.<\/p>\n\n<!--section=changelog-->\n<h4>0.3<\/h4>\n <ul>\n<li>First public stable.<\/li>\n<li>Added the dc_all_roles shortcode.<\/li>\n<li>Added the editor button.<\/li>\n<\/ul>","raw_excerpt":"With DC Role you can show users information on your pages depending on their role. A lightweight, userfriendly alternative to member\/subscription syst &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25021"}],"author":[{"embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/digicit"}],"wp:attachment":[{"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25021"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25021"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25021"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25021"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25021"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}