Support » Plugin: Force Login » Force Login failed

  • Resolved tryans



    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):

    Please help

    thank you

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.