Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active March 2, 2017 05:05
Show Gist options
  • Save neilgee/c6731cf51f22331d2cad to your computer and use it in GitHub Desktop.
Save neilgee/c6731cf51f22331d2cad to your computer and use it in GitHub Desktop.
Remove Genesis Meta in Learn Dash Custom Post Types
<?php
add_action ( 'genesis_before_entry', 'wpb_remove_post_info' );
// Remove Post Info and Post Meta from CPT
function wpb_remove_post_info() {
if ( 'sfwd-courses' || 'sfwd-lessons' || 'sfwd-quiz' || 'sfwd-topic' || 'sfwd-certificates' == get_post_type() ) {
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment