Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Redirect login url to custom page
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
You can’t perform that action at this time.