Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #8112

    Hello! Is it possible to restrict editing of single posts within a CPT, page, or post, based on certain attributes and role? For example:

    Within default WordPress posts, we’d like to allow role XYZ to always be able to edit posts with tag ABC. So if a new post is added with tag ABC; all users with role XYZ can edit. However, they would not be able to edit other posts that are not tagged ABC.

    Alternately, the restriction could be by some other attribute (custom field value, or even post title).

    Currently the only way I can think to solve this is to manually add the post ID using the Posts Edit Access feature but that will be a bit clunky for our permissions model and workflow.



    Did some more research and I *think* the best way would be to use this hook:


    To build the list of IDs based on whatever attributes we’d like.

    Is that what you’d recommend?


    As about tags, you can input tag ID to the edit restrictions for selected role.

    Yes, ure_edit_posts_access_id_list hook allows you to use any custom criteria by which you select posts available for a role.


    Great thanks for the feedback!

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