Skip to content

Instantly share code, notes, and snippets.

Last active September 1, 2019 15:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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