Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Last active January 20, 2018 00:03
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/5c2abdea0d01d549f32e7114d4a1bfe7 to your computer and use it in GitHub Desktop.
Save thomasplevy/5c2abdea0d01d549f32e7114d4a1bfe7 to your computer and use it in GitHub Desktop.
<?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