Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active March 26, 2018 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/5240731faf9fcad48542a50a1d1a2587 to your computer and use it in GitHub Desktop.
Save thomasplevy/5240731faf9fcad48542a50a1d1a2587 to your computer and use it in GitHub Desktop.
<?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' );
<?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