WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Plugin: WordPress SEO by Yoast] Removing the Meta Box

[Plugin: WordPress SEO by Yoast] Removing the Meta Box

  • With the following code I am rermoving the Yoast Metabox widget, sorry Joost 😉

    function remove_dashboard_meta_boxes(){
      global $wp_meta_boxes;
      //unset($wp_meta_boxes['dashboard']['normal']['core']['yoast_db_widget']);
      remove_meta_box('yoast_db_widget', 'dashboard', 'normal');
    }
    
    if (!current_user_can('edit_posts')) {
        add_action('wp_dashboard_setup', 'remove_dashboard_meta_boxes');
    }

    As you can see, I’ve commented the unset line. That should work, but it doesn’t. It works for other widgets..

    Can anyone clarify?
    Thanks.

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 1 replies (of 1 total)
  • I cannot help concerning the code you have posted but if you wish to completelly remove yoast metaboxes (from his other plugins also), why dont you try this plugin:

    Yoast Remove

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Removing the Meta Box’ is closed to new replies.
Skip to toolbar