Remove article:tag meta from Yoast WordPress SEO plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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