• Hello Everyone…
    I have an unusual question about roles and capabilities in the Admin Panel of WordPress – specifically the “>Appearance>Widgets>” Admin page. What I would like to do is to hide certain “Widget Areas” (or “sidebars” as they are called in code) from users with lower capabilities. In other words, users with lower capabilities would be able to add or remove widgets from some sidebars but not from others. I know how to do the code for the capabilities part (I would probably do it with taxonomies) but I don’t know if there’s a way to actually change what a user sees on the “>Appearance>Widgets>” page based on capabilities.

    Thanks in advance for any help…

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can set site-wide access permissions for each type of user with theme functions, but by default, only users with administrator-level access can access widgets.

    This plugin seems to offer the functionality you’re looking for — settings to control which users can access specific widgets and sidebars, which sidebars and widgets will be available for specific users and which widget options will be available and how they are displayed, per user:

    https://ww.wp.xz.cn/plugins/restrict-widgets/

    Thread Starter patrick_here

    (@patrick_here)

    Thanks cleancoded …that plugin does look like it would do what I’m needing. I was really looking for a solution that I could code myself (without having to reverse-engineer that plugin) but otherwise I would have to go the plugin route.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Widget Capabilities’ is closed to new replies.