Custom login page issue
-
Hi Kevin,
I’m having some issues creating a custom login URL. My current code (in functions.php) is as follows:
//* Custom Login URL function my_login_page( $login_url, $redirect ) { return site_url( '/new-login' . $redirect ); } add_filter( 'login_url', 'my_login_page', 10, 2 );
Which creates the following output:
https://sub.domain.com/new-loginhttps://sub.domain.com/home/
When it should be
https://sub.domain.com/new-login
I’ve taken the code from a previous support request you’ve answered, so I’m not sure what’s gone wrong? Any help would be massively appreciated!
Thanks, Graeme
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom login page issue’ is closed to new replies.