Created
August 13, 2013 22:27
-
-
Save cliffordp/6226331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Remove WordPress SEO (by Yoast) Stuff | |
* | |
* These different functions from various sources can come in handy when you manage sites for other people | |
* and you don't want to give them too much control or you don't want to risk them messing up the settings. | |
* | |
*/ | |
// get rid of WordPress SEO metabox - adapted from http://wordpress.stackexchange.com/a/91184/2015 | |
if ( ! is_super_admin() ) { | |
function so_remove_wp_seo_meta_box() { | |
remove_meta_box( 'wpseo_meta', 'page', 'normal' ); // change page into any post_type | |
} | |
add_action( 'add_meta_boxes', 'so_remove_wp_seo_meta_box', 100000 ); | |
} | |
// get rid of irritating WordPress SEO Columns - http://yoast.com/wordpress/seo/api/#filters | |
add_filter( 'wpseo_use_page_analysis', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment