Easy Blogging Widget Restriction Issue

Hi

I want to restrict which widgets are available to sites and their respective site admins, are available for selection on the easy blogging customize design page.

At the moment, even though forced easy blogging is enable, they can choose from all network wide widgets when logged in with 'site admin'.

Cheers

Johnny

  • johnnymestizo

    Yes, I want to hide widgets from everyone except super admins

    Hide widgets from pro sites level 1 users.

    Hide from any 1 else.

    Yes, it is loosely based on what plugins activate them in the first place.

    WP Admin Menu Editor is helping remove access from certain menus.

    It would be cool if WPMUDEV could achieve this, for both widgets and menus.

    This would clean up some of our pro sites backends.

    Cheers

    Johnny

  • Mason

    Hiya Johnny,

    Just create a new file in mu-plugins. wrap the following in php tags:

    // unregister all default WP Widgets
        function unregister_default_wp_widgets() {
        unregister_widget('WP_Widget_Pages');
        unregister_widget('WP_Widget_Calendar');
        unregister_widget('WP_Widget_Archives');
        unregister_widget('WP_Widget_Links');
        unregister_widget('WP_Widget_Meta');
        unregister_widget('WP_Widget_Search');
        unregister_widget('WP_Widget_Text');
        unregister_widget('WP_Widget_Categories');
        unregister_widget('WP_Widget_Recent_Posts');
        unregister_widget('WP_Widget_Recent_Comments');
        unregister_widget('WP_Widget_RSS');
        unregister_widget('WP_Widget_Tag_Cloud');
        }
        add_action('widgets_init', 'unregister_default_wp_widgets', 1);

    Get rid of as many as ya like! Thanks!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.