strangerstudios / pmpro-approvals

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

Add back one-click approve/deny on edit user page. #163

Open dparker1005 opened 1 year ago

dparker1005 commented 1 year ago

In PMPro Approvals version 1.5, we swapped out the one-click Approve | Deny links on the Edit User page for a link to the approvals list. This change was made to add MMPU compatibility for the plugin.

It would be nice to add back the one-click option in a MMPU-compatible way in the future. This would likely involve showing separate approve/deny buttons per level that a user is pending for.

In the meantime, we have a code recipe here to add back the old functionality for sites that need the one-click option (though this is not MMPU-compatible): https://gist.github.com/dparker1005/2b29b20a6eb1dc247423ad622fcb22c7

andrewlimaza commented 1 year ago

Maybe we can get smart about this. If there's only one level for approval, show an inline solution but if there's more than one move to the "Manage Approval Status".