Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created September 28, 2017 23:44
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/9aa39925892e9d76b49c5b8cffcccde9 to your computer and use it in GitHub Desktop.
Save thomasplevy/9aa39925892e9d76b49c5b8cffcccde9 to your computer and use it in GitHub Desktop.
enable revisions on LifterLMS lessons
<?php // don't copy this line to your functions.php file
function my_llms_lesson_reg_stuff( $args ) {
$args['supports'][] = 'revisions';
return $args;
}
add_filter( 'lifterlms_register_post_type_lesson', 'my_llms_lesson_reg_stuff' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment