Skip to content

Instantly share code, notes, and snippets.

@nathanrice
Created August 31, 2015 14:59
Show Gist options
  • 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