Skip to content

Instantly share code, notes, and snippets.

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/126a0712283d1cced6c6216cdca64652 to your computer and use it in GitHub Desktop.
Save thomasplevy/126a0712283d1cced6c6216cdca64652 to your computer and use it in GitHub Desktop.
<?php // don't copy this line if pasting into a functions.php file
add_filter( 'lifterlms_register_post_type_lesson', 'allow_course_and_lesson_search' );
add_filter( 'lifterlms_register_post_type_course', 'allow_course_and_lesson_search' );
function allow_course_and_lesson_search( $args ) {
$args['exclude_from_search'] = false;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment