Skip to content

Instantly share code, notes, and snippets.

Last active Nov 27, 2017
What would you like to do?
Genesis Title Toggle on Learn Dash Custom Post Types
* Add Genesis Title Toggle to Custom Post Types using Learn Dash as an example
* @link
* @link
* @author Bill Erickson
* @author neilgee
* @param array $post_types
* @return array
function themeprefix_title_toggle_on_cpts( $post_types ) {
$post_types[] = array('posts','sfwd-courses','sfwd-lessons','sfwd-quiz','sfwd-certificates'); //add your CPTs
return $post_types;
add_filter( 'be_title_toggle_post_types', 'themeprefix_title_toggle_on_cpts' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment