Last active
March 2, 2017 05:05
-
-
Save neilgee/c6731cf51f22331d2cad to your computer and use it in GitHub Desktop.
Remove Genesis Meta in Learn Dash Custom 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 ( '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