Forked from atomtigerzoo/wordpress-disable-yoast-seo-on-custom-post-type.php
Created
January 5, 2021 07:28
-
-
Save digitalgeneralist/f757450acfe0fc0f39a476fa6ca13814 to your computer and use it in GitHub Desktop.
Wordpress: Disable Yoast SEO on Custom Post Type
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
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment