Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created April 4, 2017 22:58
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/0f88323ef6e6a0b51f7818e74c238104 to your computer and use it in GitHub Desktop.
Save thomasplevy/0f88323ef6e6a0b51f7818e74c238104 to your computer and use it in GitHub Desktop.
<?php // don't add this line to your functions.php file
/**
* Redirect to a custom URL upon marking a lesson complete
* @param string $url default URL
* @return string
*/
function my_llms_lesson_complete_redirect( $url ) {
return 'http://mycustomurl.com';
}
add_filter( 'llms_lesson_complete_redirect', 'my_llms_lesson_complete_redirect', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment