Created
August 1, 2015 17:19
-
-
Save strangerstudios/088ce3403af75ab20c97 to your computer and use it in GitHub Desktop.
Example SQL to copy PMPro page restrictions from one level to another.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Copy PMPro page restrictions from level 1 to level 2. Change the 1 and 2 below to copy for different levels. | |
| INSERT 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