Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created June 29, 2017 21:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasplevy/8c82fd899912d6b887dd39261b831bca to your computer and use it in GitHub Desktop.
Save thomasplevy/8c82fd899912d6b887dd39261b831bca to your computer and use it in GitHub Desktop.
<?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