I’m trying to add a conditions to specific post for editing. I have got post type clients. And this post type have got client_manager field(acf). client_manager field is getting a user on system. When a client fill our form on frontend, form information match with field from backend. And admin add a manager(user type) in backend. I want to add a control for managers doesn’t edit other manager’s client post.
I want this:
If clients post client_manager field equal to current user, manager can edit post. Is it possible?
Read more here:: How can i add condition for editing post with a field