Yoast SEO
[Plugin: WordPress SEO by Yoast] Remove WordPress SEO dashboard widget (9 posts)

  1. katart17
    Posted 4 years ago #

    I would like to remove the dashboard widget and I noticed there is an X to remove it, but when I reload, it always comes back. I tried removing it using the UNSET method in my functions.php file, but can't get that to work.

    Any ideas?

  2. Josh
    Posted 4 years ago #

    You can always hide widgets from the screen options tab.

  3. katart17
    Posted 4 years ago #

    I know that is an option and probably what I will end up doing, but I want to hide it from all users below Level 10 (Administrators).

  4. Viktor Nagornyy
    Posted 4 years ago #

    I have a same problem. Close button doesn't work and even unset function in functions file won't remove it, like it does other widgets.


  5. IAmThePat
    Posted 4 years ago #

    I am having the same issue as well. Clicking the x brings up the note:

    "If you reload, this widget will be gone and never appear again, unless you decide to delete the database option 'yoastdbwidget'."

    and then if I reload, the widget comes back in full force.

  6. joesken
    Posted 4 years ago #

    This is also still happening with the latest version of WP 3.0.4.

  7. doubled
    Posted 4 years ago #

    I'm new to wordpress and coding but

    I have removed

    if ( !isset($options['removedbwidget'.$network]) || !$options['removedbwidget'.$network] )
    wp_add_dashboard_widget( 'yoast_db_widget' , 'The Latest From Yoast' , array(&$this, 'db_widget') );

    from yst_plugin_tools.php file (wordpress-seo/admin/ directory) and the widget disappeared

  8. IAmThePat
    Posted 4 years ago #

    Thanks doubled! I tried removing a few things like that whole function, but I guess I was just going too big.

    I have just commented it out, and it is working as advertised.

    Thanks again

  9. karl19
    Posted 4 years ago #

    This is what we just used to hide a bunch of widgets for contributors and subscribers:

    function tidy_dashboard() {
      global $wp_meta_boxes, $current_user;
      // remove incoming links info for contributors or subscribers
      if(in_array('contributor', $current_user->roles) || in_array('subscriber', $current_user->roles))
    //add our function to the dashboard setup hook
    add_action('wp_dashboard_setup', 'tidy_dashboard');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic