Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active March 2, 2017 05:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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