Skip to content

Instantly share code, notes, and snippets.

@XaibiAslam
Last active December 6, 2019 12:14
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 XaibiAslam/9e8c95eaeafaf9117d52cfa577b9ca02 to your computer and use it in GitHub Desktop.
Save XaibiAslam/9e8c95eaeafaf9117d52cfa577b9ca02 to your computer and use it in GitHub Desktop.
Remove hentry from Wordpress Post Class
/**
* 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