Alter membership levels ID in table / membership levels logic?
-
I’m wondering what the best way to alter the membership level IDs may be. To keep this simple, I added and then deleted a level through the WP dashboard. Currently, there is no “3” ID in the levels since it was deleted. The levels currently order as 1, 2, 4, 5 and so on. I’d like to change this so they order sequentially as 1, 2, 3, 4 … It looks like the
wp_pmpro_membership_levels
table in the database controls the membership levels.- If I delete the levels manually from the table in the database and then re-add them in the dashboard, would the next level added be in order of the existing levels? (for instance, if only ID 1 and 2 exist, is the next level ID 3 regardless of how many levels have existed in the past?)
- Or will the next level ID be the “next” level added over the course of the site (for instance, if I had 10 levels and deleted 8 of them, would the new level ID be 11 even if there are only 2 levels present in the levels table?)
I hope that makes sense, sorry it got a little confusing. Please let me know if I can provide any additional info. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Alter membership levels ID in table / membership levels logic?’ is closed to new replies.