Created
September 26, 2018 19:39
-
-
Save thomasplevy/b1a358f8b38155dcf05de2a66452bf86 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', 'my_show_lessons_in_rest' ); | |
function my_show_lessons_in_rest( $args ) { | |
$args['show_in_rest'] = true; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment