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

Mmpu compatibility

Open dparker1005 opened this issue 3 years ago • 0 comments

All Submissions:

  • [x] Have you followed the Contributing guideline?
  • [x] Does your code follow the WordPress' coding standards?
  • [x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Changes proposed in this Pull Request:

Add compatibility with PMPro Multiple Memberships Per User. Note that this does not include compatibility for purchasing multiple levels in a single checkout, only for managing users who have multiple levels.

Builds off of #56.

Specific changes made include:

  • Considering all of a user's level when generating a link to checkout in pmproap_getLevelIDForCheckoutLink() function
  • Now keeping correct enddate after purchasing an add-on package instead of choosing the enddate for the first level that the user has

Other information:

  • [x] Have you added an explanation of what your changes do and why you'd like us to include them?
  • [x] Have you successfully run tests with your changes locally?

Changelog entry

Enter a summary of all changes on this Pull Request. This will appear in the changelog if accepted.

dparker1005 avatar Oct 07 '22 14:10 dparker1005