+1
Also experiencing this problem.
@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://wordpress.org/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?
@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
@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.wordpress.org/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