I want to add a condition wia acf field for editing post to user role. For example:
If user role is editor
and musteri_danismani
field is equal to current user id
, he can edit the post.
How can I adding a function like this for custom post type?