WordPress.org

Ready to get started?Download WordPress

Forums

Social Media Feather
[resolved] How to hide dashboard widget? (4 posts)

  1. Brian Saycocie
    Member
    Posted 6 months ago #

    Hello,

    First I want to say, thanks for building this awesome plugin!

    It works very well for me except there is one issue I have. The plugin creates a dashboard widget that is title "News and Updates by Synved".

    Is there a way to disable it?

    Thanks!

    http://wordpress.org/plugins/social-media-feather/

  2. Brian Saycocie
    Member
    Posted 6 months ago #

    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' );
  3. Synved
    Member
    Plugin Author

    Posted 6 months ago #

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

  4. bernardberry646
    Member
    Posted 4 months ago #

    Thanks Brian!

Reply

You must log in to post.

About this Plugin

About this Topic