Last active
December 22, 2021 18:43
-
-
Save imelgrat/11002ff0aaa08bbcb5dfee46c2f96aff to your computer and use it in GitHub Desktop.
Fixing the ‘Missing required hCard / hEntry’ Google Search Console errors (dirty fix)
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 | |
function imelgrat_remove_hentry($class) | |
{ | |
$class = array_diff($class, array('hentry')); | |
return $class; | |
} | |
add_filter('post_class', 'imelgrat_remove_hentry'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment