Created
January 17, 2014 21:30
-
-
Save toddsby/8481963 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/* Filter to the post_class. */ | |
add_filter( 'post_class', 'remove_class' ); | |
/** | |
* Remove class from post_class() function. | |
*/ | |
function remove_class( $classes ) { | |
$classes = array_diff( $classes, array( 'hentry' ) ); // seperate with commas for more than one class. | |
return $classes; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment