Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example SQL to duplicate restrictions for level ID 1 to also restrict for level ID 2
#Example SQL to duplicate restrictions for level ID 1 to also restrict for level ID 2
INSERT IGNORE INTO wp_pmpro_memberships_pages (membership_id, page_id)
SELECT '2', page_id FROM wp_pmpro_memberships_pages WHERE membership_id = 1;
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.