Created
June 29, 2017 21:36
-
-
Save thomasplevy/8c82fd899912d6b887dd39261b831bca 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 to your functions.php file | |
/** | |
* Redirect to a custom page on your site during LifterLMS Registrations | |
* @param string $url default URL | |
* @return string | |
*/ | |
function my_lifterlms_reg_redirect( $url ) { | |
return untrailingslashit( get_site_url() ) . '/my-custom-redirct-page'; | |
} | |
add_filter( 'lifterlms_registration_redirect', 'my_lifterlms_reg_redirect' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment