Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Force Login failed

$
0
0

Replies: 0

Hello

I try to add this script to my wp function.php after install and activate force login plugin

// Custom Login URL
function my_login_page( $login_url, $redirect ) {
    return site_url( '/custom-login/?redirect_to=' . $redirect );
}
add_filter( 'login_url', 'my_login_page', 10, 2 );

But it’s failed, my website is redirected to the wrong URL. I don’t know why.
It’s like this (too many redirects): http://prnt.sc/1ry8igj

Please help

thank you


Viewing all articles
Browse latest Browse all 59525

Trending Articles