Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • 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);
@MrSiir
Copy link

MrSiir commented Jan 7, 2021

Thanks!

@glebkema
Copy link

Thanks!

@ArneSaknussemm
Copy link

Thanks!

@ScottJFreeman
Copy link

I found the answer without coding
111

This hides it everywhere, not just for a specific custom post type.

@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