WordPress.org

Support

Support » Plugins and Hacks » Social Media Feather | social media sharing » [Resolved] How to hide dashboard widget?

[Resolved] How to hide dashboard widget?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Nevermind! Figured it out. According to the Dashboard Widgets API, you’ll need to create a function to remove the meta box:

    // Create the function to use in the action hook
    function example_remove_dashboard_widget() {
     	remove_meta_box( 'synved_connect_dashboard_widget', 'dashboard', 'normal' );
    }
    
    // Hook into the 'wp_dashboard_setup' action to register our function
    add_action('wp_dashboard_setup', 'example_remove_dashboard_widget' );

    You don’t need custom code to hide dashboard widgets, you can do so by pulling down the “Screen Options” menu (at the top).

    Thanks Brian!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How to hide dashboard widget?’ is closed to new replies.
Skip to toolbar