Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove article:tag meta from Yoast WordPress SEO plugin
// Put in functions.php or custom functionality plugin.
// Remove 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
You can’t perform that action at this time.