strangerstudios / pmpro-addon-packages

Charge for access to specific pages or other post types in WordPress. Requires the Paid Memberships Pro plugin.
https://www.paidmembershipspro.com/add-ons/pmpro-purchase-access-to-a-single-page/
25 stars 29 forks source link

No longer pulling level from $_REQUEST #61

Closed dparker1005 closed 11 months ago

dparker1005 commented 1 year ago

Should only be merged once this PR is confirmed to be merged into the PMPro v3.0 branch: https://github.com/strangerstudios/paid-memberships-pro/pull/2506

This PR specifically stops pulling the checkout level from the $_REQUEST variable (since we are prefixing the level parameter in 3.0) and instead uses the pmpro_getLevelAtCheckout() function.