WordPress.org

Forums

Restrict Multisite Widgets
[resolved] Hide Widgets from Site Admins in Dashboard (3 posts)

  1. dwieeb
    Member
    Posted 4 years ago #

    Hi,

    When I restrict a widget, as admin, I can still activate and view the widget, of course. This is expected behavior.

    But, is it expected behavior for a restricted widget to be hidden for members?

    For example, I want to have widgets specifically for my main site, but I want them restricted for other sites. The widgets on my main site are restricted but activated. As admin, I can see them. As a guest/member I cannot.

    Is there any way to just hide some widgets from site admins so they can't use them, but network admins can? Can this functionality be added to this plugin?

    Thanks!

    http://wordpress.org/extend/plugins/restrict-multisite-widgets/

  2. Adam Harley (Kawauso)
    Member
    Posted 4 years ago #

    Not expected behaviour, just a side effect from how I handled removing widgets at run-time. Thanks for the heads up.

    Can you try changing the final line of the plugin to:

    if ( is_admin() )
    	new RestrictAllowedWidgets;

    That should limit the effects of the restrictions to just the admin-side, rather than leaking through to the frontend. I'll push out a new version if that works okay.

  3. dwieeb
    Member
    Posted 4 years ago #

    Yep, works great now!

    Once again, thank you for these plugins. They're a real life saver.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Restrict Multisite Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic