Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created December 21, 2016 22:56
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/9e1bdcb313ef326bc2cc734f12b5140f to your computer and use it in GitHub Desktop.
Save thomasplevy/9e1bdcb313ef326bc2cc734f12b5140f to your computer and use it in GitHub Desktop.
<?php // don't copy this line to your functions.php file
/**
* Redirect users to an alternate URL instead of their student dashboard when they login
* using the form on the Student dashboard page
* @param null $url url is not set by default and redirects students back to their dashboard
* @return string
*/
function my_llms_student_dashboard_login_redirect( $url ) {
return 'http://mywebsite.tld/path/to/page';
}
add_filter( 'llms_student_dashboard_login_redirect', 'my_llms_student_dashboard_login_redirect' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment