Last active
March 26, 2018 19:21
-
-
Save thomasplevy/5240731faf9fcad48542a50a1d1a2587 to your computer and use it in GitHub Desktop.
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 // don't copy this line into your functions.php file | |
// disables lesson short description in the lesson preview tiles | |
add_filter( 'llms_show_preview_excerpt', '__return_false' ); |
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 // don't copy this line into your functions.php file | |
/** | |
* Display lesson excerpts on course syllabus but NOT on next / previous tiles on lesson pages | |
*/ | |
function my_lesson_preview_function( $show ) { | |
if ( is_course() ) { | |
return true; | |
} | |
return false; | |
} | |
// disables lesson short description in the lesson preview tiles | |
add_filter( 'llms_show_preview_excerpt', 'my_lesson_preview_function' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment