-
-
Save ANIRUDDHBHAT/d92fde9601b8603287a1e4ea0bfef583 to your computer and use it in GitHub Desktop.
Enable excerpts for LearnDash Lessons
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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment