Block selected widgets under Appearance menu

Block selected widgets under Appearance menu for some role – is it possible? Yes, now it’s possible with “Widgets Access” additional module added to User Role Editor Pro version 4.15. If role has access to the “Widgets” menu item of “Appearance” menu, you may block access to the selected widgets for that role using this add-on.

  • 1st, go the User Role Editor Pro Options page under the Settings menu (go to the Network Admin under multi-site) and activate “Widgets Access” additional module.
    Activate Widgets Access module
    Activate Widgets Access module
  • 2nd, Go to the “User Role Editor” under Users menu, select role, for which you wish to limit access to some widgets, and use a new “Widgets” button to open widgets access managing window.
    Pay attention that role should contain ‘edit_theme_options’ capability in order you can restrict the access to the selected widgets for it. Without ‘edit_theme_options’ capability a user with this role will not get access to the “Appearance->Widgets” menu, for which we plan to set the additional restrictions.
    Widgets Access manager button
    Widgets Access manager button
  • 3rd, turn on checkboxes to the left from the widgets, access to which you wish to block for this role. Click “Update” and that’s it.
    Widgets Access manager window
    Widgets Access manager window

    Just login under user with this role and open “Appearance=>Widgets” page. Widgets you selected to block are not shown. That’s right. The same is right for the “Widgets” section at “Appearance=>Customize” page.

At short video below I blocked for “Widgets Manager” role 2 widgets “Recent Posts” and “Calendar”, already added to the sidebar. I didn’t wish that user touch them.
Then I switched to the user with “Widgets Manager” role, showed that “Recent Posts” and “Calendar” widgets were not available to him, added another widget to the sidebar.
That new widget was shown below the widgets which were added by administrator earlier. It is correct for any restricted widgets added to the sidebar.