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 Approve Member Parameter to static method approveMember #134

Closed ronalfy closed 4 years ago

ronalfy commented 4 years ago

Is your feature request related to a problem? Please describe.

To approve members, there is no current way aside from forcing meta to approve a member. Calling approveMember should have a force option to skip sanity/permission checks. Additionally, if the approval is forced, there should be a way to skip the emails since this is intentional (i.e., programmed in).

Describe the solution you'd like When a third param is set, approve the member no-questions-asked.

Describe alternatives you've considered Force-adding meta, which would be duplicate effort.

Additional context

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