Skip to content

Instantly share code, notes, and snippets.

@ocean90
Last active December 12, 2015 00:58
Show Gist options
  • Select an option

  • Save ocean90/4687653 to your computer and use it in GitHub Desktop.

Select an option

Save ocean90/4687653 to your computer and use it in GitHub Desktop.
WordPress: Removes the hentry mircoformat from post_class() output.
<?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