Skip to content

Instantly share code, notes, and snippets.

@nathanrice
Created August 31, 2015 14:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nathanrice/03a5871e5e5a27f22747 to your computer and use it in GitHub Desktop.
Save nathanrice/03a5871e5e5a27f22747 to your computer and use it in GitHub Desktop.
Remove entry meta for post types
<?php
add_action( 'init', 'sample_remove_entry_meta', 11 );
/**
* Remove entry meta for post types
*
* @link https://gist.github.com/nathanrice/03a5871e5e5a27f22747
*/
function sample_remove_entry_meta() {
remove_post_type_support( 'post-type', 'genesis-entry-meta-before-content' );
remove_post_type_support( 'post-type', 'genesis-entry-meta-after-content' );
}
@rowatt
Copy link

rowatt commented Oct 23, 2015

Is there a reason you have the action at priority 11? Genesis sets this up at priority 11, so setting to priority 12 or more ensures this will run after Genesis has done its initial setup of meta support for post types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment