Skip to content

Instantly share code, notes, and snippets.

View XaibiAslam's full-sized avatar
🎯
Focusing

Xaibi Aslam XaibiAslam

🎯
Focusing
View GitHub Profile
@XaibiAslam
XaibiAslam / functions.php
Last active December 6, 2019 12:14
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' );