The MU forums have moved to WordPress.org

Remove Meta widget from users admin screen [Wordpress MU] (5 posts)

  1. Nimwit
    Member
    Posted 15 years ago #

    Hi there,

    Does anyone know when I might find an mu-plugin to remove the meta widget from the user admin screen without hacking the core code?

    If not, and I need to hack the core code, could someone direct me to which file I need to change and what I need to change in it.

    Thanks,

    N.

  2. andrea_r
    Moderator
    Posted 15 years ago #

    Yeah, you can de-register widgets via plugin.

    *brain fart*

  3. Nimwit
    Member
    Posted 15 years ago #

    OK I got it sorted now, anyone who needs to do this simply create php file and copy in to mu-plugins:

    <?php

    function ds_unregister_some_widgets() {
    unregister_sidebar_widget('Meta');
    }
    add_action('widgets_init','ds_unregister_some_widgets',99);

    ?>

    N.

    http://mu.wordpress.org/forums/topic.php?id=9033

  4. Nimwit
    Member
    Posted 15 years ago #

    You can find names of widgets in wp-includes/widgets.php.

  5. Nimwit
    Member
    Posted 15 years ago #

    thx again andrea_r.

    N.

About this Topic