{"id":878,"date":"2014-08-30T06:38:36","date_gmt":"2014-08-30T06:38:36","guid":{"rendered":"https:\/\/www.role-editor.com\/?p=878"},"modified":"2023-09-03T07:01:44","modified_gmt":"2023-09-03T07:01:44","slug":"block-selected-widgets-under-appearance-menu","status":"publish","type":"post","link":"https:\/\/www.role-editor.com\/block-selected-widgets-under-appearance-menu\/","title":{"rendered":"Block selected widgets under Appearance menu"},"content":{"rendered":"<p>Block selected widgets under Appearance menu for some role &#8211; is it possible? Yes, now it&#8217;s possible with &#8220;Widgets Admin Access&#8221; additional module. If role has access to the &#8220;Widgets&#8221; menu item of &#8220;Appearance&#8221; menu, you may block access to the selected widgets for that role using this add-on.<!--more--><\/p>\n<ul>\n<li>1st, go the User Role Editor Pro Options page under the Settings menu (go to the Network Admin under multi-site) and activate &#8220;Widgets Admin Access&#8221; additional module.<br \/>\n<figure style=\"width: 533px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" src=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-01.png\" width=\"533\" alt=\"activate widgets admin access module\" class \/><\/a><figcaption class=\"wp-caption-text\">Activate Widgets Admin Access module<\/figcaption><\/figure>\n<\/li>\n<li>2nd, Go to the &#8220;User Role Editor&#8221; under Users menu, select role, for which you wish to limit access to some widgets at the &#8220;Appearance->Widgets&#8221; page,  and use a &#8220;Widgets&#8221; button to open &#8220;Widgets admin access&#8221; managing window. Pay attention that role should contain &#8216;edit_theme_options&#8217; capability in order you can restrict the access to the selected widgets for this role. Without &#8216;edit_theme_options&#8217; capability a user with this role will not get access to the &#8220;Appearance->Widgets&#8221; menu, and thus there is no sense to set the additional restrictions widgets admin for such role.<br \/>\n<figure style=\"width: 334px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" src=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-02.png\" width=\"334\" alt=\"widgets admin access manager button\" class \/><\/a><figcaption class=\"wp-caption-text\">Widgets Admin Access manager button<\/figcaption><\/figure><\/li>\n<li>3rd, turn on checkboxes to the left from the widgets, access to which you wish to block for this role. Click &#8220;Update&#8221; and that&#8217;s it.<br \/>\n<figure style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-03.png\"><img decoding=\"async\" src=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-03.png\" width=\"600\" alt=\"widgets admin access manager window\" class \/><\/a><figcaption class=\"wp-caption-text\">Widgets Admin Access manager window<\/figcaption><\/figure>\n<\/li>\n<\/ul>\n<p>If login under user with &#8216;editor&#8217; role, &#8220;Categories&#8221;, &#8220;Tag Cloud&#8221; and &#8220;Navigation Menu&#8221; widgets will not be available for selection:<br \/>\n<figure style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-04.png\"><img decoding=\"async\" src=\"https:\/\/role-editor.com\/wp-content\/uploads\/doc\/widgets-admin-access-04.png\" width=\"600\" alt=\"widgets page for restricted role\" class \/><\/a><figcaption class=\"wp-caption-text\">Widgets page for restricted role<\/figcaption><\/figure><br \/>\nWidgets you selected to block are not shown for this role. That&#8217;s right. The same is right for the &#8220;Widgets&#8221; section at &#8220;Appearance=&gt;Customize&#8221; page.<\/p>\n<p>***<br \/>\nAt short video below I blocked for &#8220;Widgets Manager&#8221; role 2 widgets &#8220;Recent Posts&#8221; and &#8220;Calendar&#8221;, already added to the sidebar. I didn&#8217;t wish that user touch them.<br \/>\nThen I switched to the user with &#8220;Widgets Manager&#8221; role, showed that &#8220;Recent Posts&#8221; and &#8220;Calendar&#8221; widgets were not available to it, added another widget to the sidebar.<br \/>\nThat new widget was shown below the widgets which were added by administrator earlier. It is correct for any restricted widgets added to the sidebar.<\/p>\n<div class=\"center\">\n<iframe loading=\"lazy\" title=\"User Role Editor Pro - widgets admin access restrictions\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/VdRF_rBVh-s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Block selected widgets under Appearance menu for some role &#8211; is it possible? Yes, now it&#8217;s possible with &#8220;Widgets Admin Access&#8221; additional module. If role has access to the &#8220;Widgets&#8221; menu item of &#8220;Appearance&#8221; menu, you may block access to<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.role-editor.com\/block-selected-widgets-under-appearance-menu\/\">Read more <span class=\"screen-reader-text\">Block selected widgets under Appearance menu<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"pmpro_default_level":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-878","post","type-post","status-publish","format-standard","hentry","category-user-role-editor-news","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/posts\/878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":2,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":8372,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/posts\/878\/revisions\/8372"}],"wp:attachment":[{"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.role-editor.com\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}