Created
March 31, 2016 12:39
Wordpress: Disable Yoast SEO on Custom Post Type
This file contains hidden or 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
function my_remove_wp_seo_meta_box() { | |
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal'); | |
} | |
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100); |
❤️
Exactly what I was needing. Thanks.
Perfect!
Thanks!
Thanks!
It works, thanks :)
Thanks :)
Thanks!
I found that I can use this for multiple post types as well. just pass an array as the second argument:
function my_remove_wp_seo_meta_box() {
remove_meta_box('wpseo_meta', ["Post_Type_1","Post_Type_2"], 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100);
Thanks!
Thanks!
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You're welcome - glad it helped :)