It is finally time to present version 1.1.40 of Profile Builder Pro with a new and awesome feature: WordPress User Approval by Admins.
We’ve always tried to add features that lets you manage your users, fight spam and build local profiles for your users with ease.
What this feature does is add a new option next to each user’s management options: besides the possibility to edit or delete the given user, now an administrator can also approve or unapprove a user.
By default, this feature comes turned off. To activate it, go to the “General Settings” tab, and enable this feature by selecting “Yes” right besides the text “Admin Approval” Feature Activated.
Once this is done, the default WP userlisting table should have a new option for every user who has administrator privileges, 2 new menus (which you can use to filter only the “approved” or only the “unapproved” users) and also a new column.
Also, the WordPress Admin Approval feature is fully compatible with the back-end too, thus once it is active, users who register get (by default) the “unapproved” user-status (same as they would get using the registration form created via Profile Builder), and they can’t log in or edit their profiles until approved by an admin.
Here’s a list of what the unapproved users can’t do:
- Can’t log in (neither front-, nor back-end)
- Can’t be displayed (archive page or single user profile using the user listing addon in Profile Builder Pro)
- Won’t appear in the userlisting created via Profile Builder Pro
WordPress User Approval filters
We also added new filters, to make the “Admin Approval” feature more customizable (view a list of all the filters present here):
- wppb_new_user_status_from_email_content
DEFINITION: Applied to the “from” field of the email sent to the user once an administrator has approved/unapproved his account
RETURNS: 1 string-type variable.
TIP: Can be used to modify the content - wppb_new_user_status_subject_email_content
DEFINITION: Applied to the “subject” field of the email sent to the user once an administrator has approved/unapproved his account
RETURNS: 1 string-type variable.
TIP: Can be used to modify the content - wppb_new_user_status_body_content
DEFINITION: Applied to the “body” (main content) field of the email sent to the user once an administrator has approved/unapproved his account
RETURNS: 1 string-type variable.
TIP: Can be used to modify the content - wppb_change_user_status_notification_message
DEFINITION: Applied to the confirmation message which is displayed to the administrator once requests a status change for a given user
RETURNS: 1 string-type variable.
TIP: Can be used to modify the content of this confirmation message
For more information, please read the documentation page for this particular feature.
Subscribe to get early access
to new plugins, discounts and brief updates about what’s new with Cozmoslabs!
Source: https://www.cozmoslabs.com/6973-wordpress-user-approval/