The following is a code snippet originally posted by Daniel McClure on GitHub as a Gist.
“`
* Enable excerpts for LearnDash Lessons
*/
function add_excerpts_to_ld_lessons() {
add_post_type_support( ‘sfwd-lessons’, ‘excerpt’ );
}
add_action( ‘init’, ‘badd_excerpts_to_ld_lessons’ );
“`
Original Gist
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 | |
/** | |
* Enable excerpts for LearnDash Lessons | |
*/ | |
function add_excerpts_to_ld_lessons() { | |
add_post_type_support( 'sfwd-lessons', 'excerpt' ); | |
} | |
add_action( 'init', 'add_excerpts_to_ld_lessons' ); |
Leave a Reply