Last active
May 12, 2022 19:48
-
-
Save danielmcclure/20ca2a1e080ce0f9b95f652fa1f32a36 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
Thanks a lot for this beautiful snippet.