• Resolved dwieeb

    (@dwieeb)


    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!

    https://www.ads-software.com/extend/plugins/restrict-multisite-widgets/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thread Starter dwieeb

    (@dwieeb)

    Yep, works great now!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Restrict Multisite Widgets] Hide Widgets from Site Admins in Dashboard’ is closed to new replies.