Created
August 31, 2015 14:59
-
-
Save nathanrice/03a5871e5e5a27f22747 to your computer and use it in GitHub Desktop.
Remove entry meta for post types
This file contains 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 | |
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' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.