Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example SQL to add restriction to all 'posts' for Level ID 2. Change level ID for your needs.
#Example SQL to add restriction to all 'posts' for Level ID 2. Change level ID for your needs.
INSERT IGNORE INTO wp_pmpro_memberships_pages (membership_id, page_id)
SELECT 2, ID FROM wp_posts WHERE post_type = 'post';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.