How to remove wordpress logo from admin bar and WordPress news/Welcome msg from dashboard

Add the following code goes into your WordPress’ themes functions.php file:

//To remove WordPress from admin bar

function annointed_admin_bar_remove() {
        global $wp_admin_bar;

        /* Remove their stuff */
        $wp_admin_bar->remove_menu('wp-logo');
}

add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0);

//To remove WordPress Welcome Panel

remove_action('welcome_panel', 'wp_welcome_panel');

//To remove WordPress Dashboard meta


add_action('wp_dashboard_setup', 'remove_dashboard_widgets');

function remove_dashboard_widgets () {

     remove_meta_box( 'dashboard_primary',       'dashboard', 'side' );      //WordPress.com Blog

}

via WordPress › Support » filter to remove wordpress logo/pages from admin bar?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.