plugin development – Lock Custom Post Type to Owner?


I’m creating a restaurant directory using a custom post type. The directory will contain a bunch of listings (of a single custom post type) where each listing represents a single restaurant.

I’m trying to lock each post to the owner of the establishment once the listing is claimed. Until a listing is claimed anyone can edit the listing but once the listing is claimed only the owner (or any other user who the owner explicitly grants permission to do so) should be able to edit that listing.

I was thinking of using membership plugins (such as Member Press or Restrict Content Pro) but from my understanding this doesn’t work on the single post level.

What is the best way to achieve this?

S.O.S 2 months 2022-12-10T20:52:32-05:00 0 Answers 0 views 0

Leave an answer