Lego2012
12/13/2016 - 3:20 PM

Remove entry meta from a CPT

Remove entry meta from a CPT

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

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' );
}