Skip to content

Instantly share code, notes, and snippets.

@neilgee
Last active Nov 27, 2017
Embed
What would you like to do?
Genesis Title Toggle on Learn Dash Custom Post Types
<?php
/**
* Add Genesis Title Toggle to Custom Post Types using Learn Dash as an example
*
* @link http://www.billerickson.net/code/genesis-title-toggle-for-posts
* @link https://wpbeaches.com/genesis-title-toggle-custom-post-types-learn-dash/
* @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