WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Removing the Meta Box (2 posts)

  1. Marcel Bootsman
    Member
    Posted 2 years ago #

    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/

  2. tempor
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic