Last active
January 20, 2018 00:03
-
-
Save thomasplevy/5c2abdea0d01d549f32e7114d4a1bfe7 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 to your functions.php file | |
/** | |
* Redirect a user after sucessfully purchasing a course or membership | |
* @param string $url default redirect URL | |
* @param obj $order Instance of the LLMS_Order for the completed transaction | |
* @return string | |
*/ | |
function my_lifterlms_completed_transaction_redirect( $url, $order ) { | |
return 'http://mydomain.tld/path/to/page'; | |
} | |
add_filter( 'lifterlms_completed_transaction_redirect', 'my_lifterlms_completed_transaction_redirect', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment