• Resolved joeycy

    (@joeycy)


    Hi,

    I have tried to use the following function to redirect frontend visitors to my custom login page.

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

    However, when I tried to access the WP admin panel / backend via wp-admin, I’m getting a blank screen.

    Could you point me to the right direction?

    Thank you so much.

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Vess

    (@kevinvess)

    Hi, thanks for using Force Login!

    First, I recommend you enable WP_DEBUG mode to see what PHP errors you’re encountering.

    Second, if you’re using a custom login URL and Force Login –?you might need to add an exception to Force Login for your custom login URL to be publicly accessible. Check out the plugin FAQs to see an example of how to do this.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Custom login url only for frontend visitor’ is closed to new replies.