Created
April 25, 2016 15:22
-
-
Save danjjohnson/f971bd7d7d0c9dec02c30af146620266 to your computer and use it in GitHub Desktop.
Redirect login url to custom page
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
add_filter( 'login_url', 'my_login_page', 10, 2 ); | |
function my_login_page( $login_url, $redirect ) { | |
return home_url( '/login-page/?redirect_to=' . $redirect ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I dont think works anymore. I see 'sign in' not login and it produces this type of URL
Https://hello.com/submit-resume/?redirect_to=https://dbtest.gr/simple/submit-resume/?job_id=0