{"id":22425,"date":"2013-03-13T15:48:04","date_gmt":"2013-03-13T15:48:04","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/sidebar-per-user-role\/"},"modified":"2016-12-14T15:32:55","modified_gmt":"2016-12-14T15:32:55","slug":"sidebar-per-user-role","status":"publish","type":"plugin","link":"https:\/\/ps.wordpress.org\/plugins\/sidebar-per-user-role\/","author":7512325,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3","stable_tag":"0.3","tested":"4.7.0","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Sidebar Per User Role","header_author":"Bainternet","header_description":"","assets_banners_color":"ffffff","last_updated":"2016-12-14 15:32:55","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=PPCPQV","header_plugin_uri":"http:\/\/en.bainternet.info","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2368,"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":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"681311","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"681311","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"681311","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"681311","resolution":"3","location":"assets"}},"screenshots":{"1":"User Role Sidebars","2":"Plugin option panel","3":"Plugin help panel"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[56318,3710,56317,2696,2153],"plugin_category":[43],"plugin_contributors":[77997],"plugin_business_model":[],"class_list":["post-22425","plugin","type-plugin","status-publish","hentry","plugin_tags-per-role","plugin_tags-role","plugin_tags-sidebar-per-user","plugin_tags-sidebars","plugin_tags-user","plugin_category-customization","plugin_contributors-bainternet","plugin_committers-bainternet"],"banners":{"banner":"https:\/\/ps.w.org\/sidebar-per-user-role\/assets\/banner-772x250.png?rev=681311","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sidebar-per-user-role_ffffff.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/sidebar-per-user-role\/assets\/screenshot-1.png?rev=681311","caption":"User Role Sidebars"},{"src":"https:\/\/ps.w.org\/sidebar-per-user-role\/assets\/screenshot-2.png?rev=681311","caption":"Plugin option panel"},{"src":"https:\/\/ps.w.org\/sidebar-per-user-role\/assets\/screenshot-3.png?rev=681311","caption":"Plugin help panel"}],"raw_content":"<!--section=description-->\n<p>This Plugin lets you display a sidebar per user role automaticaly without any coding what so ever, and it works with any theme out of the box.<\/p>\n\n<p>Any feedback or suggestions are welcome.<\/p>\n\n<p>Also check out my <a href=\"http:\/\/en.bainternet.info\/category\/plugins\">other plugins<\/a>\n\u00a0<\/p>\n\n<!--section=installation-->\n<ul>\n<li>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation.<\/li>\n<li>Then activate the Plugin from Plugins page.<\/li>\n<li>Done!<\/li>\n<\/ul>\n\n<!--section=faq-->\n<p>Usage:\u00a0<\/p>\n\n<p>Either call the guest sidebar in your theme using :<\/p>\n\n<p>\u00a0<\/p>\n\n<pre><code>&lt;?php dynamic_sidebar( 'guest-sidebar' ); ?&gt;\n<\/code><\/pre>\n\n<p>\u00a0<\/p>\n\n<p>which will be replaced based on the user role.<\/p>\n\n<p>\u00a0<\/p>\n\n<p>Or use an existing sidebar you want replaced by adding this in your themes functions.php<\/p>\n\n<p>\u00a0<\/p>\n\n<pre><code>add_action('after_theme_setup','replace_sidebar_');\n\nfunction replace_sidebar_(){\n\n\u00a0 \u00a0 global $sidebars_per_role;\n\u00a0 \u00a0 $sidebars_per_role-&gt;sidebar_to_replace = 'ID-OF-YOUR-Sidebar';\n}\n<\/code><\/pre>\n\n<!--section=changelog-->\n<p>0.3 Fixed naming issues\n0.2 Fixed require_once error.\n0.1 Initial relases.<\/p>","raw_excerpt":"This Plugin lets you display a sidebar per user role","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/22425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=22425"}],"author":[{"embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bainternet"}],"wp:attachment":[{"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=22425"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=22425"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=22425"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=22425"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=22425"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ps.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=22425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}