Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save atomtigerzoo/7b32bd26668e9f471e503c85e345e942 to your computer and use it in GitHub Desktop.
Save atomtigerzoo/7b32bd26668e9f471e503c85e345e942 to your computer and use it in GitHub Desktop.
Wordpress: Disable Yoast SEO on Custom Post Type
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);
@mfru
Copy link

mfru commented May 3, 2022

image

It is possible to disable Yoast granularly now, also for custom post types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment