Created
May 17, 2016 17:17
-
-
Save thomasplevy/126a0712283d1cced6c6216cdca64652 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 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