Answer the question
In order to leave comments, you need to log in
How to enable user role selection?
Faced such a problem.! There are two types of users in applications ....
well, for example .. there are users who, for example, work in only one specialty .... but there are those who have
2 specialties. For those who have 2 specialties, creating two logins and passwords with different rights for one user is not a hunt .....
Tell me how to make it so that the user can choose the specialty under which he will work at the entrance.
what and where to write. or sketches of how you would solve this problem ... you can just verbal explanations ....
Answer the question
In order to leave comments, you need to log in
You have an error in the first parameter in the condition body, and the third parameter is missing when specifying the second. Read the documentation.
Just do this:
...
if($_SERVER['REQUEST_URI'] == '/wp-admin/post-new.php?post_type=events') {
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question