Last active
December 6, 2019 12:14
-
-
Save XaibiAslam/9e8c95eaeafaf9117d52cfa577b9ca02 to your computer and use it in GitHub Desktop.
Remove hentry from Wordpress Post Class
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
/** | |
* Remove hentry from post_class | |
*/ | |
function xa_remove_hentry_class( $classes ) { | |
$classes = array_diff( $classes, array( 'hentry' ) ); | |
return $classes; | |
} | |
add_filter( 'post_class', 'xa_remove_hentry_class' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment