Skip to content

Instantly share code, notes, and snippets.

@macariojames
Last active September 1, 2019 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macariojames/f167223be5e2720797a89bc2acc38049 to your computer and use it in GitHub Desktop.
Save macariojames/f167223be5e2720797a89bc2acc38049 to your computer and use it in GitHub Desktop.
Remove article:tag meta from Yoast WordPress SEO plugin
<?php
// 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