strangerstudios / pmpro-approvals

Grants administrators the ability to approve/deny memberships after signup.
https://www.paidmembershipspro.com/add-ons/approval-process-membership/
19 stars 29 forks source link

Add Force Param to approveMember #135

Closed ronalfy closed 4 years ago

ronalfy commented 4 years ago

All Submissions

Changes proposed in this Pull Request:

Adds a force param for approvals and a filter to prevent sending emails.

Closes #134

How to test the changes in this Pull Request:

See gist: https://gist.github.com/ronalfy/9298cc44393127b0a26a900912d2bf4e

Other information:

Changelog entry

Add a force parameter to static method approveMember to skip permission checks for programmatically approving a member.