Created
April 4, 2017 22:58
-
-
Save thomasplevy/0f88323ef6e6a0b51f7818e74c238104 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 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