Hi,
I want to redirect to dashboard if a vendor is logged in and to home page otherwise, I tested debugging for a while with this code but it seems like not working
Yes, unfortunately it will not work this way, since this filter is used when the form is rendered and the current user ID is not available at this time. I recommend redirecting this form to a common URL (e.g. /?login_redirect=1). Then you can add another callback for template_redirect, check if $_GET['login_redirect'] is set and check if the user is a vendor there, and redirect them.
And thanks to the help provided by the hivepress team.
I’m just asking you one last favor. I don’t know about programming and I have a hard time changing things.
Your fragment is great but I need you to redirect the user who registers for the first time and is not yet a seller to the screen of becoming a seller (just like when you hit the publish a listing button)
But I don’t know how to do it.
I think it’s adding some line or putting an “Else” but I don’t know how to do it.
Thank you, if you can help me jamel, ihor, andrii, yevhen.
With pleasure @APORTODAS
I’m a developer and I’m also new to Hivepress, your need looks specific and I’m afraid that I couldn’t help right away but maybe in a couple of days or more since I’m super busy with a project, that’s why I suggest you to hire some one from Fiverr for example to do things much faster
Regards