Created
December 21, 2016 22:56
-
-
Save thomasplevy/9e1bdcb313ef326bc2cc734f12b5140f 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 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