Embed Snippet on Your Site
MemberPress: Auto Approve Sub-Accounts with New User Approve Plugin
This code snippet can be used if the New User Approve plugin is set on the website to approve users before they are allowed to log in.
This verification step is also required on the sub-account registration when the MemberPress Corporate Accounts is used on the website.
By adding the code snippet, the verification step will be skipped for sub-accounts, resulting in the automatic approval of sub-account users. The code specifies the corporate memberships that should be affected by this code snippet.
The code should be adjusted by replacing the dummy array of membership IDs (123, 456, 789) with the array of the actual membership IDs on this line:
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments