Support » Plugin: Social Media Feather | social media sharing » 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 ‘How to hide dashboard widget?’ is closed to new replies.