Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.