Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Last active March 29, 2021 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/3c6fbf21ac77e887212bb16d32f20f21 to your computer and use it in GitHub Desktop.
Save kimcoleman/3c6fbf21ac77e887212bb16d32f20f21 to your computer and use it in GitHub Desktop.
Example SQL to add restriction on CPT 'gallery' for Level ID 3
@laurenhagan0306
Copy link

This recipe is included in the blog post on "Bulk methods to restrict access to posts, pages, and CPTs for a specific membership level ID via MySQL" at Paid Memberships Pro here: https://www.paidmembershipspro.com/bulk-methods-to-restrict-access-to-posts-pages-and-cpts-for-a-specific-membership-level-id-via-mysql/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment