Instantly share code, notes, and snippets.

Embed
What would you like to do?
Remove article:tag meta from Yoast WordPress SEO plugin
// for removing article:tag meta that Yoast's WordPress SEO outputs ~mj
function remove_wpseo_fb_tags_categories() {
global $wpseo_og;
remove_action('wpseo_opengraph', array($wpseo_og, 'tags'), 16);
remove_action('wpseo_opengraph', array($wpseo_og, 'category'), 17);
}
add_action('wpseo_opengraph', 'remove_wpseo_fb_tags_categories');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment