pmpro-addon-packages icon indicating copy to clipboard operation
pmpro-addon-packages copied to clipboard

Cleaning up nested functions

Open dparker1005 opened this issue 3 years ago • 0 comments

The pmproap_pmpro_checkout_level() function currently contains a lot of nested functions that it hooks as needed: https://github.com/strangerstudios/pmpro-addon-packages/blob/7d022caffc222bdb3ea762295818d321c7fd499b/pmpro-addon-packages.php#L422-L541

This approach is not working with Stripe Checkout and is not how we recommend hooking into our checkout process in general. This PR pulls out those nested functions to standardize the code and make it easier to work with in the future.

dparker1005 avatar Sep 21 '22 19:09 dparker1005