the Short and sweet way would be to store the post id that they are allowed to edit in custom user meta. Then us wp_update_post and check if the id is in the user meta if so update if not don’t.
Related Posts:
- grant multiple roles access to specific admin menu item
- wp_update_user not updating
- Is WordPress’ is_user_logged_in() secure?
- Temporarily disable user role login and replace with message
- how to add custom user capabilities using add_user_meta or something else?
- Is there a way to set the user Role based on email domain
- pre_get_posts Remove posts based on meta value with ‘post__not_in’
- What is the difference between “create_users” and “add_users” capabilities?
- Access on specific pages in wordpress for a specific user
- How to ‘unpublish’ or ‘hide’ posts when user role changes?
- Hide Specific User Page
- Let new user role to ‘edit_others_posts’ of other user role, not of its own type
- How can I have different groups of editors only allowed to edit certain parent+subpages?
- How do I remove the Other Roles field (from User Role Editor plugin) in wp-admin/user-new.php
- How to redirect specific post type with user role
- wordpress editor role remove all but ‘menus’ in appearance menu
- Parent User and Child User – relate users
- How to create user specific pages (not user role!)?
- Assigning certain authors to specific editors
- Restrict Access in Admin Panel
- Limit a user to have access to only specified pages?
- Plugin creation – how to add user rights?
- User restricted only show posts assigned to current user
- Restrict custom post content to specific user
- Hide front-end from every logged out user and redirect them to the default login page
- How to restrict an admin page, if the user is not superadmin?
- Need to block user role from accessing bbPress all together
- How to create a front facing user sign up, log in and profile pages like FoodGawker.Com [closed]
- Infinite redirects at front end if logged in user is not an Admin (Toolset Access)
- Is there a way to allow users with “Subscriber” user role to access media library in backend and frontend
- How to make WP page accessile only to specific user roles
- Check what capabilitie(s) an action requires
- Custom User Role: Can Edit Own Page, Cannot Create New
- Is it possible to restrict a specific user to edit a specific custom post.
- New folder and file permissions are not correct
- How to change a user’s role?
- Allow member to have access to custom post type only. Permission to only edit their own posts
- Is it possible to add new user Roles?
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- Restrict admin access to certain pages for certain users
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- Temporarily give ‘manage_options’ capability
- Only allow administrators and editors to access wp-admin
- Hide specific admin users’ posts
- How to filter the role selector?
- How to allow registered users to change their user role through frontend?
- if role is logged in then do something
- how to change user roles for users who doesn’t have any. (about 8000 users)
- Shold I manually add ‘cap’ to admin role ?
- Getting a user role from the user login name
- Why is wp-login redirecting to the home page when I use this function?
- Allow contributor to view own scheduled post
- Editor and contributor roles not correct after adding function
- How to add author role as a custom field to custom post type in wordpress?
- How are roles stored in the database?
- How to delete user roles?
- Identical members roles on all sites in a multisite
- Capability for allowing user to post own comments without moderation
- I am adding a new class to my body tag if the logged in user is subscriber, need help
- How to Orderby User Role?
- Prevent custom user role to add new pages
- The delete_posts capability?
- Capabilites not working [closed]
- get approved users only ( ultimate member plugin )
- Create Super Admin that cant be deleted
- remove/hide pages from users backend
- Assign second role to user
- Adding Capabilities to a WordPress User Account
- My subscriber has the “edit comment” capability but can’t edit comment
- New user is assigned 2 roles: customer and superadmin
- bbPress plugin moderator roles
- how to set any post creation for pending status and let the admin approve it first?
- Allowing user to edit posts based on the post status
- Allow user role “salesman” to view only “client” role users
- Updater user with multiple roles
- Custom user types getting html sanitized in posts
- Hiding custom theme functionality using capabilities
- Use PHP code to create custom user roles. Call it once?
- custom plugin not visible to some user roles
- What Capability is required to let a role RUN code in Edit Theme?
- Can I Create a Second Admin Level User Role?
- Creating a folder structure
- Retrieve user roles but exclude default roles
- Disabled delete_others_posts if post is from admin
- How to hide Add new Term area for taxonomy terms for specific role (Client)
- Allow a page to be edited by a specific custom role
- show the author’s role along with the name in the single.php
- How to create different views for different user roles?
- How to Enable registration email for a custom user role?
- How can I add the ability for a user to add/edit administrators?
- How to sync user database with “user role editor” plugin enabled
- add user role selection to registration form [duplicate]
- Assign specific editor with custom user meta “A” to all authors with custom user meta “A” and exclude all other author access
- Grant access to admin menu?
- I want this code to work only for Authors AND Contributors
- How to give different user access to different people?
- What is the correct way of validating running code when a particular role accesses a screen?
- Hardening user’s role after add_role
- Trying to require log in to view any post/pages/taxnomy
- How can I add the User Menu for Authors (role)?