Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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);
@mailsondias

This comment has been minimized.

Copy link

commented Jun 28, 2017

Thanks for sharing!

@atomtigerzoo

This comment has been minimized.

Copy link
Owner Author

commented Jul 30, 2017

You're welcome - glad it helped :)

@JayHoltslander

This comment has been minimized.

Copy link

commented Aug 23, 2017

❤️

@calvinbramlett

This comment has been minimized.

Copy link

commented Oct 16, 2017

Exactly what I was needing. Thanks.

@andredaniel

This comment has been minimized.

Copy link

commented Nov 23, 2017

Perfect!

@BristolITDave

This comment has been minimized.

Copy link

commented Feb 19, 2018

Thanks!

@projectsperminute

This comment has been minimized.

Copy link

commented Feb 20, 2018

Thanks!

@abdulwahab610

This comment has been minimized.

@alexapgutierrez

This comment has been minimized.

Copy link

commented Jul 25, 2018

It works, thanks :)

@hayatbiralem

This comment has been minimized.

Copy link

commented Oct 13, 2018

Thanks :)

@majdagithub

This comment has been minimized.

Copy link

commented Nov 22, 2018

Thanks!

@geochanto

This comment has been minimized.

Copy link

commented Apr 29, 2019

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);
@ipatovstyle

This comment has been minimized.

Copy link

commented May 5, 2019

I found the answer without coding
111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.