I am trying to tidy up the post_class
function.
I've managed to remove "hentry" class using the filter below, but I would also like to remove the "post-id", "type-" and "status-" classes as well. How can I use my filter to do this?
function lsmwp_remove_postclasses( $classes ) {
$classes = array_diff( $classes, array( 'hentry' ) );
return $classes;
}
add_filter( 'post_class','lsmwp_remove_postclasses' );