Changing the Register link in the My Account dropdown

This topic contains 9 replies, has 3 voices, and was last updated by  Dave Flanagan 6 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #405085

    Dave Flanagan
    Free User
    Post count: 81

    I am not sure which support forum this would go under but I was wondering how to change the Register link within the My Account dropdown. I would like the Register link to take users to the s2Member registration page. (Please refer to screenshot)

    #405089

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    We have a documentation about exactly that:

    https://wpgeodirectory.com/docs/redirecting-the-login-page/

    Let us know if you have any questions

    #405130

    Dave Flanagan
    Free User
    Post count: 81

    I implemented the correct code snippet from the documentation but the Register link still connects users to the GeoDirectory “Register” page, instead of the S2member registration

    #405156

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    OK! Let’s take a look. Please reply with your Site URL and Admin credentials.

    You made sure to change the URL in the snippet, right? What is the registration page you want to redirect to?

    #405208

    Dave Flanagan
    Free User
    Post count: 81
    This reply has been marked as private.
    #405211

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #405213

    Dave Flanagan
    Free User
    Post count: 81
    This reply has been marked as private.
    #405217

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    You could give that a try, definitely.

    We will be back to this tomorrow, so you have some time to give it a try.

    Thanks

    #405289

    Kiran
    Moderator
    Post count: 7069

    Hi Dave,

    Please check now after clearing your browser cache.

    I have updated priority order to 100 and cleared GD Booster cache. Now it working fine for me.

    
    
    function _my_geodir_login_url( $login_url, $args, $gd_page_id ) {
        if ( !empty( $args['signup'] ) ) {
            // Change the url to whatever you want.
            $login_url = 'https://MYSITE.COM/wp-login.php?action=register';
        }
        return $login_url;
    }
    add_filter( 'geodir_login_url', '_my_geodir_login_url', 100, 3 );

    Let us know.

    Thanks,
    Kiran

    #405429

    Dave Flanagan
    Free User
    Post count: 81

    The issue has been resolved, Kiran!

    Thanks
    Dave

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

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

Open Support Ticket