I have successfully created a custom user role called Client and I am using the same structure to create a second custom user role called Broker. I have been stumped here all morning for something so simple, there is no difference other than the required variables and names. The second user role does not show…
Tag: roles
Redirect by user role from a specific admin url to another url
This code works fine if I use is_front_page as current page/url, because it gets my homepage and redirects user by role to a specific path, but it doesn’t work if I try to get a specific current url of wp admin dashboard, I tried with get_home_url(path), but it doesn’t work: Thank you in advance. …