Not understanding code snippet / redirect

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 7 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #369971

    Steve
    Full Member
    Post count: 1019

    Good morning. I have installed the code snippet but apparently do not understand the configuration required. (https://wpgeodirectory.com/docs/redirecting-the-login-page/)

    Site: https://associatedloggers.com/

    Snippet: add_filter(‘geodir_login_url’,’change_geodir_login_url’,10,3);
    function change_geodir_login_url($login_url,$args,$gd_page_id){
    //change the url to whatever you want.
    $login_url = ‘https://associatedloggers.com/friends/’;
    return $login_url;
    }

    Thank you for your assistance as always.

    Kind regards,

    #369981

    Guust
    Moderator
    Post count: 29970

    The redirect is not to redirect AFTER login, but to redirect to your custom login page if you have one.
    Do you not want to use https://associatedloggers.com/gd-login/ ?

    Thanks

    #369985

    Steve
    Full Member
    Post count: 1019

    My apologies. I was looking for a redirect “after” login. Please close thread.
    Thank you for your response Guust.

    Have a good day.

    regards,

    #369992

    Guust
    Moderator
    Post count: 29970

    No problem Steve

Viewing 4 posts - 1 through 4 (of 4 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