• Resolved tdnine

    (@tdnine)


    Hi,

    I have added the following shortcode to my page,

    [wp_login_form label_log_in=”Take Test” label_username=”Email ID” redirect=”https://amazon.in/”%5D

    still on a successful login it doesn’t redirect to URL specified but goes to the my account page. Can you please check.

    Following is a dummy login details
    email id : [email protected]
    password : test@123

    • This topic was modified 4 years, 9 months ago by tdnine.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • +1

    Also experiencing this problem.

    Plugin Author Noor Alam

    (@naa986)

    @tdnine, There is no my account page in WordPress. I believe you’re using WooCommerce and it’s overriding the login functionality.

    Thread Starter tdnine

    (@tdnine)

    Not using woocommerce but another plugin for user registration : https://www.ads-software.com/plugins/user-registration/

    The problem with that plugin is – it has a default my account page which can’t be edited, so no possibility of adding a redirect link on login success.

    Is there a way that your plugin can still have a redirect on successful login?

    Plugin Author Noor Alam

    (@naa986)

    @tdnine, WordPress login can be customized with filters. If a plugin applies a filter globally to change the redirect URL there is nothing you can do.

    Thread Starter tdnine

    (@tdnine)

    i see, so that plugin is blocking this functionality of yours by applying its filter globally

    Plugin Author Noor Alam

    (@naa986)

    @tdnine, WordPress offers a filter that can be used to redirect any login to your site to a particular page. I believe that’s what it’s doing.

    https://developer.www.ads-software.com/reference/hooks/login_redirect/

    I don’t like this type of coding because it affects the whole site. Sadly most developers don’t think this way.

    Thread Starter tdnine

    (@tdnine)

    ah well, for now i managed to provide a solution by putting a button below the my account page which redirects to particular url ( though its useless, since the button can be clicked even without logging in by just landing on the my account page ) lol

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirect URL’ is closed to new replies.