Redirecting the login page no longer works on V2

This topic contains 2 replies, has 2 voices, and was last updated by  TLN 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #474173

    TLN
    Expired Member
    Post count: 131

    This no longer works on GeoDirectory V2:
    https://wpgeodirectory.com/docs/redirecting-the-login-page/

    I’m using the following code instead:

    function goto_login_page() {
    $login_page = home_url( ‘/link-to-your-login-page/’ );
    global $pagenow;
    if( ‘wp-login.php’ == $pagenow && $_GET[‘action’]!=”logout”) {
    wp_redirect($login_page);
    exit();
    }
    }
    add_action(‘init’,’goto_login_page’);

    #474351

    Paolo
    Site Admin
    Post count: 31211

    Anything that you’ll find here https://wpgeodirectory.com/docs/ is for V1 only.

    V2 docs are here: https://wpgeodirectory.com/docs-v2/

    Thanks

    #474361

    TLN
    Expired Member
    Post count: 131

    I did not realize this! Thanks very much.

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount