Skip to content

Instantly share code, notes, and snippets.

@furahaclothing
Created January 23, 2014 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furahaclothing/8574421 to your computer and use it in GitHub Desktop.
Save furahaclothing/8574421 to your computer and use it in GitHub Desktop.
post_class()からhentryクラスを抜く(構造化データ)
function remove_hentry( $classes ) {
$classes = array_diff($classes, array('hentry'));
return $classes;
}
add_filter('post_class', 'remove_hentry');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment