Last active
December 12, 2015 00:58
-
-
Save ocean90/4687653 to your computer and use it in GitHub Desktop.
WordPress: Removes the hentry mircoformat from post_class() output.
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 | |
| /** | |
| * Removes the hentry mircoformat from post_class() output. | |
| */ | |
| function ds_remove_hentry_microformat( $classes ) { | |
| return array_diff( $classes, array( 'hentry' ) ); | |
| } | |
| add_filter( 'post_class', 'ds_remove_hentry_microformat' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment