Support » Plugin: User Role Editor » How can i add condition for editing post with a field.

  • Hi,

    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?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulia


    It’s not possible via editing WordPress roles and capabilities only. Your task requires custom programming. Look if you may change your criteria to someone offered by this add-on. If Yes, think about an upgrade to a Pro version.

    Yeah i know add-on. But i must write a function for all post id’s. I don’t want add manual post id. If Pro version can do this, how is it? With a function ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.