Version Description
- Added filter to enable/disable auto login on WooCommerce checkout, by default it will be enabled.
Download this release
Release Info
| Developer | wpexpertsio |
| Plugin | |
| Version | 1.9.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.8.9 to 1.9.1
- new-user-approve.php +16 -6
- readme.txt +104 -98
new-user-approve.php
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
Plugin URI: http://newuserapprove.com/
|
| 6 |
Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
|
| 7 |
Author: NewUserApprove
|
| 8 |
-
Version: 1.
|
| 9 |
Author URI: https://newuserapprove.com/
|
| 10 |
Text Domain: new-user-approve
|
| 11 |
*/
|
|
@@ -876,11 +876,21 @@ class pw_new_user_approve
|
|
| 876 |
* Disable auto login on WooCommerce checkout
|
| 877 |
*
|
| 878 |
*/
|
| 879 |
-
public function disable_woo_auto_login_on_checkout()
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 884 |
}
|
| 885 |
|
| 886 |
|
| 5 |
Plugin URI: http://newuserapprove.com/
|
| 6 |
Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
|
| 7 |
Author: NewUserApprove
|
| 8 |
+
Version: 1.9.1
|
| 9 |
Author URI: https://newuserapprove.com/
|
| 10 |
Text Domain: new-user-approve
|
| 11 |
*/
|
| 876 |
* Disable auto login on WooCommerce checkout
|
| 877 |
*
|
| 878 |
*/
|
| 879 |
+
public function disable_woo_auto_login_on_checkout() {
|
| 880 |
+
// destroying session when pending user trying to checkout
|
| 881 |
+
$boolean = false;
|
| 882 |
+
$boolean = apply_filters( 'new_user_approve_woo_checkout_process_logout', $boolean );
|
| 883 |
+
if( $boolean ) {
|
| 884 |
+
if( is_user_logged_in() ) {
|
| 885 |
+
$user_id = get_current_user_id();
|
| 886 |
+
$user_status = get_user_meta($user_id, 'pw_user_status', true);
|
| 887 |
+
if( $user_status != 'approved' ) {
|
| 888 |
+
wp_destroy_current_session();
|
| 889 |
+
wp_clear_auth_cookie();
|
| 890 |
+
wp_set_current_user( 0 );
|
| 891 |
+
}
|
| 892 |
+
}
|
| 893 |
+
}
|
| 894 |
}
|
| 895 |
|
| 896 |
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: wpexpertsio
|
|
| 3 |
Donate link: https://newuserapprove.com
|
| 4 |
Tags: users, registration, sign up, user management, login, user approval
|
| 5 |
Requires at least: 4.0
|
| 6 |
-
Tested up to: 5.
|
| 7 |
-
Stable tag: 1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -13,46 +13,120 @@ are able to login to the site.
|
|
| 13 |
|
| 14 |
== Description ==
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 27 |
|
| 28 |
-
|
| 29 |
-
2. User is shown message to check email.
|
| 30 |
-
3. Login credentials are sent to new user in an email.
|
| 31 |
-
4. User logs in to site using login credentials.
|
| 32 |
-
5. Admin is notified of new user sign up via email.
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
3. Admin is notified of new user sign up via email.
|
| 39 |
-
4. Admin goes to wp-admin to approve or deny new user.
|
| 40 |
-
5. Email is sent to user. If approved, email will include login credentials.
|
| 41 |
-
6. User logs in to site using login credentials.
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
-
✔️ [WooCommerce](https://woocommerce.com/)
|
| 49 |
-
✔️ [Memberpress](https://memberpress.com/)
|
| 50 |
|
| 51 |
**Customize**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
== Installation ==
|
| 58 |
|
|
@@ -93,6 +167,9 @@ We are aware of a few issues with multisite
|
|
| 93 |
|
| 94 |
== Changelog ==
|
| 95 |
|
|
|
|
|
|
|
|
|
|
| 96 |
= 1.8.9 =
|
| 97 |
* Issue in user search functionality.
|
| 98 |
|
|
@@ -360,74 +437,3 @@ Download version 1.3.2 immediately! A bug was found in version 1.3 that allows a
|
|
| 360 |
|
| 361 |
The code for this plugin is also available at Github - https://github.com/picklewagon/new-user-approve. Pull requests welcomed.
|
| 362 |
|
| 363 |
-
= Filters =
|
| 364 |
-
* *new_user_approve_user_status* - modify the list of users shown in the tables
|
| 365 |
-
* *new_user_approve_request_approval_message* - modify the request approval message
|
| 366 |
-
* *new_user_approve_request_approval_subject* - modify the request approval subject
|
| 367 |
-
* *new_user_approve_approve_user_message* - modify the user approval message
|
| 368 |
-
* *new_user_approve_approve_user_subject* - modify the user approval subject
|
| 369 |
-
* *new_user_approve_deny_user_message* - modify the user denial message
|
| 370 |
-
* *new_user_approve_deny_user_subject* - modify the user denial subject
|
| 371 |
-
* *new_user_approve_pending_message* - modify message user sees after registration
|
| 372 |
-
* *new_user_approve_registration_message* - modify message after a successful registration
|
| 373 |
-
* *new_user_approve_register_instructions* - modify message that appears on registration screen
|
| 374 |
-
* *new_user_approve_pending_error* - error message shown to pending users when attempting to log in
|
| 375 |
-
* *new_user_approve_denied_error* - error message shown to denied users when attempting to log in
|
| 376 |
-
|
| 377 |
-
= Actions =
|
| 378 |
-
* *new_user_approve_user_approved* - after the user has been approved
|
| 379 |
-
* *new_user_approve_user_denied* - after the user has been denied
|
| 380 |
-
* *new_user_approve_approve_user* - when the user has been approved
|
| 381 |
-
* *new_user_approve_deny_user* - when the user has been denied
|
| 382 |
-
|
| 383 |
-
== Premium Features ==
|
| 384 |
-
|
| 385 |
-
* Provide Ability To remove plugin stats from admin dashboard
|
| 386 |
-
* Remove the admin panel specifically added to update a user's status, from wordpress dashboard.
|
| 387 |
-
* Customize the welcome message displayed above wordpress login form.
|
| 388 |
-
* Customize the 'Pending error message' displayed when user tries to login but his account is still pending approval.
|
| 389 |
-
* Customize the 'Denied error message' displayed when user tries to login but his account is denied approval.
|
| 390 |
-
* Customize the welcome message displayed above wordpress Registration form.
|
| 391 |
-
* Customize the Registration complete message displayed after user submits Registration form for approval.
|
| 392 |
-
* Provide Ability To Send notification emails to all admins
|
| 393 |
-
* Notify admins when a user's status is updated
|
| 394 |
-
* Disable notification emails to current site admin
|
| 395 |
-
* Customize the email sent to admin when a user registers for the site
|
| 396 |
-
* Customize the email sent to user when his profile is approved.
|
| 397 |
-
* Customize the email sent to user when his profile is denied.
|
| 398 |
-
* Suppress denial notification
|
| 399 |
-
* Provides option to send all notification as html.
|
| 400 |
-
* It Provides you Different template tags which can be used in Notification Emails and Other messages on site.
|
| 401 |
-
|
| 402 |
-
[Download Premium from here](https://newuserapprove.com/options-addon)
|
| 403 |
-
|
| 404 |
-
= Translations =
|
| 405 |
-
The plugin has been prepared to be translated. If you want to help to translate the plugin to your language, please have a look at the localization/new-user-approve.pot file which contains all definitions and may be used with a gettext editor like Poedit (Windows). More information can be found on the [Codex](http://codex.wordpress.org/Translating_WordPress).
|
| 406 |
-
|
| 407 |
-
When sending me your translation files, please send me your wordpress.org username as well.
|
| 408 |
-
|
| 409 |
-
* Belarussian translation by [Fat Cow](http://www.fatcow.com/)
|
| 410 |
-
* Brazilian Portuguese translation by [leogermani](http://profiles.wordpress.org/leogermani/)
|
| 411 |
-
* Bulgarian translation by [spaszs](https://profiles.wordpress.org/spaszs/)
|
| 412 |
-
* Catalan translation by [xoanet](http://profiles.wordpress.org/xoanet/)
|
| 413 |
-
* Croatian translation by Nik
|
| 414 |
-
* Czech translation by [GazikT](http://profiles.wordpress.org/gazikt/)
|
| 415 |
-
* Danish translation by [GeorgWP](http://wordpress.org/support/profile/georgwp)
|
| 416 |
-
* Dutch translation by [Ronald Moolenaar](http://profiles.wordpress.org/moolie/)
|
| 417 |
-
* Estonian translation by (Rait Huusmann)(http://profiles.wordpress.org/raitulja/)
|
| 418 |
-
* Finnish translation by Tonttu-ukko
|
| 419 |
-
* French translation by [Philippe Scoffoni](http://philippe.scoffoni.net/)
|
| 420 |
-
* German translation by Christoph Ploedt
|
| 421 |
-
* Greek translation by [Leftys](http://alt3rnet.info/)
|
| 422 |
-
* Hebrew translation by [Udi Burg](http://blog.udiburg.com)
|
| 423 |
-
* Hungarian translation by Gabor Varga
|
| 424 |
-
* Italian translation by [Pierfrancesco Marsiaj](http://profiles.wordpress.org/pierinux/)
|
| 425 |
-
* Lithuanian translation by [Ksaveras](http://profiles.wordpress.org/xawiers)
|
| 426 |
-
* Persian translation by [alimir](http://profiles.wordpress.org/alimir)
|
| 427 |
-
* Polish translation by [pik256](http://wordpress.org/support/profile/1271256)
|
| 428 |
-
* Romanian translation by [Web Hosting Geeks](http://webhostinggeeks.com/)
|
| 429 |
-
* Russian translation by [Alexey](http://wordpress.org/support/profile/asel)
|
| 430 |
-
* Serbo-Croation translation by [Web Hosting Hub](http://www.webhostinghub.com/)
|
| 431 |
-
* Slovakian translation by Boris Gereg
|
| 432 |
-
* Spanish translation by [Eduardo Aranda](http://sinetiks.com/)
|
| 433 |
-
* Swedish translation by [Per Bjälevik](http://pastis.tauzero.se)
|
| 3 |
Donate link: https://newuserapprove.com
|
| 4 |
Tags: users, registration, sign up, user management, login, user approval
|
| 5 |
Requires at least: 4.0
|
| 6 |
+
Tested up to: 5.8.1
|
| 7 |
+
Stable tag: 1.9.1
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 13 |
|
| 14 |
== Description ==
|
| 15 |
|
| 16 |
+
**New User Approve plugin automates the user registration process on your WordPress website.**
|
| 17 |
|
| 18 |
+
Typically, the user registration process on a WordPress website is pretty straightforward. When a new user registers, their unique identity is created in the website’s database. An email is then sent to the new user that contains their login credentials. **Simple as it can be, but it goes to say that there is plenty of room for customization**.
|
| 19 |
|
| 20 |
+
**Introducing New User Approve** - a new way to register users on your WordPress website.
|
| 21 |
|
| 22 |
+
Here’s how the process works with **New User Approve:**
|
| 23 |
|
| 24 |
+
1. A user registers on the site, and their ID is created.
|
| 25 |
+
2. An email is sent to the administrators of the site.
|
| 26 |
+
3. An administrator is then given a choice to either approve or deny the registration request.
|
| 27 |
+
4. An email is then sent to the user indicating whether they were approved or denied.
|
| 28 |
+
5. If the user is approved, an email will be sent to them that includes their login credentials.
|
| 29 |
+
6. Until the user is approved, they will not be able to login to the site.
|
| 30 |
|
| 31 |
+
Only approved users will be allowed to log in to the site. Thus, users waiting for approval or the ones rejected will not be able to login to the site - Simple, straightforward, and effective.
|
| 32 |
|
| 33 |
+
The user’s status can be updated even after the initial approval/denial request. Also, users that have been created before the activation of **New User Approve** will be treated as approved users.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
+
[youtube https://www.youtube.com/watch?v=RowV3wmD_jg]
|
| 36 |
|
| 37 |
+
**New and improved user interface**
|
| 38 |
+
The overall interface has been revised and improved for a trendy, fresh, and minimal look. The latest design includes a whole new look and experience for the layout so your users can have an experience unlike any other.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
The clean and easy user interface always helps the existing and the new customers gain confidence in your website.
|
| 41 |
+
|
| 42 |
+
**Compatibility**
|
| 43 |
+
New User Approve is compatible with [WooCommerce](https://woocommerce.com/), [MemberPress](https://memberpress.com/), [WP-Foro](https://wpforo.com/), [Learndash](https://www.learndash.com/), and [Ultimate Member](https://ultimatemember.com/).
|
| 44 |
|
| 45 |
+
**[Follow New User Approve on Github](https://github.com/picklewagon/new-user-approve)**
|
| 46 |
|
| 47 |
+
Further support at [newuserapprove.com](http://newuserapprove.com/).
|
|
|
|
|
|
|
| 48 |
|
| 49 |
**Customize**
|
| 50 |
+
**New User Approve** can be customized using **custom actions and filters**. You can find out more about these by browsing the source code.
|
| 51 |
+
|
| 52 |
+
A commercial plugin that adds a config panel for customization is also available at [https://newuserapprove.com/options-addon/](https://newuserapprove.com/options-addon/).
|
| 53 |
+
|
| 54 |
+
**The code for this plugin is also available at Github** [https://github.com/picklewagon/new-user-approve](https://github.com/picklewagon/new-user-approve). Pull requests are welcomed.
|
| 55 |
+
|
| 56 |
+
**FILTERS**
|
| 57 |
+
- *new_user_approve_user_status* – modify the list of users shown in the tables
|
| 58 |
+
- *new_user_approve_request_approval_message* – modify the request approval message
|
| 59 |
+
- *new_user_approve_request_approval_subject* – modify the request approval subject
|
| 60 |
+
- *new_user_approve_approve_user_message* – modify the user approval message
|
| 61 |
+
- *new_user_approve_approve_user_subject* – modify the user approval subject
|
| 62 |
+
- *new_user_approve_deny_user_message* – modify the user denial message
|
| 63 |
+
- *new_user_approve_deny_user_subject* – modify the user denial subject
|
| 64 |
+
- *new_user_approve_pending_message* – modify message user sees after registration
|
| 65 |
+
- *new_user_approve_registration_message* – modify message after a successful registration
|
| 66 |
+
- *new_user_approve_register_instructions* – modify message that appears on registration screen
|
| 67 |
+
- *new_user_approve_pending_error* – error message shown to pending users when attempting to log in
|
| 68 |
+
- *new_user_approve_denied_error* – error message shown to denied users when attempting to log in
|
| 69 |
+
|
| 70 |
+
**ACTIONS**
|
| 71 |
+
- *new_user_approve_user_approved* – after the user has been approved
|
| 72 |
+
- *new_user_approve_user_denied* – after the user has been denied
|
| 73 |
+
- *new_user_approve_approve_user* – when the user has been approved
|
| 74 |
+
- *new_user_approve_deny_user* – when the user has been denied
|
| 75 |
+
|
| 76 |
+
**New User Approve Pro features**
|
| 77 |
+
[Download Premium from here](https://newuserapprove.com/options-addon)
|
| 78 |
|
| 79 |
+
* Ability to remove plugin stats from the admin dashboard.
|
| 80 |
+
* Remove the admin panel from the WordPress dashboard specifically added to update a user’s status.
|
| 81 |
+
* Auto approve or reject users by adding them to Blacklist or Whitelist.
|
| 82 |
+
* Customize the welcome message displayed above the WordPress login form.
|
| 83 |
+
* Customize the ‘Pending error message’ displayed to the user on the log-in page when their account is still pending approval.
|
| 84 |
+
* Customize the ‘Denied error message’ displayed to the user when their account is denied approval.
|
| 85 |
+
* Customize the welcome message displayed above the WordPress registration form.
|
| 86 |
+
* Customize the ‘registration complete’ message displayed after the user submits the registration form for approval.
|
| 87 |
+
* Ability To send notification emails to all admins.
|
| 88 |
+
* Notify admins when a user’s status is updated.
|
| 89 |
+
* Disable notification emails to current site admin.
|
| 90 |
+
* Customize the email sent to admin/s when a user registers on the site.
|
| 91 |
+
* Customize the email sent to the user when their profile is approved.
|
| 92 |
+
* Customize the email sent to the user when their profile is denied.
|
| 93 |
+
* Suppress denial notification/s.
|
| 94 |
+
* Option to send all notification/s in the HTML format.
|
| 95 |
+
* Different template tags can be used in Notification Emails and other messages.
|
| 96 |
+
* Features (Auto-approve and Invitation codes) are compatible with Memberpress.
|
| 97 |
+
* Fully compatible with WooCommerce's registration mechanism.
|
| 98 |
+
* Invitation codes to invite and approve users automatically.
|
| 99 |
+
* Invitation codes can be generated manually and automatically.
|
| 100 |
+
* Import invitation codes via CSV file.
|
| 101 |
+
|
| 102 |
+
== TRANSLATIONS ==
|
| 103 |
+
If you need help in translating the content of this plugin into your language, then take a look at the localization/new-user-approve.pot file, which contains all definitions and can be used with a gettext editor like Poedit (Windows). More information can be found on the [Codex](https://codex.wordpress.org/Translating_WordPress).
|
| 104 |
|
| 105 |
+
* Belarussian translation by [Fat Cow](http://www.fatcow.com/)
|
| 106 |
+
* Brazilian Portuguese translation by [leogermani](http://profiles.wordpress.org/leogermani/)
|
| 107 |
+
* Bulgarian translation by [spaszs](https://profiles.wordpress.org/spaszs/)
|
| 108 |
+
* Catalan translation by [xoanet](http://profiles.wordpress.org/xoanet/)
|
| 109 |
+
* Croatian translation by Nik
|
| 110 |
+
* Czech translation by [GazikT](http://profiles.wordpress.org/gazikt/)
|
| 111 |
+
* Danish translation by [GeorgWP](http://wordpress.org/support/profile/georgwp)
|
| 112 |
+
* Dutch translation by [Ronald Moolenaar](http://profiles.wordpress.org/moolie/)
|
| 113 |
+
* Estonian translation by (Rait Huusmann)(http://profiles.wordpress.org/raitulja/)
|
| 114 |
+
* Finnish translation by Tonttu-ukko
|
| 115 |
+
* French translation by [Philippe Scoffoni](http://philippe.scoffoni.net/)
|
| 116 |
+
* German translation by Christoph Ploedt
|
| 117 |
+
* Greek translation by [Leftys](http://alt3rnet.info/)
|
| 118 |
+
* Hebrew translation by [Udi Burg](http://blog.udiburg.com)
|
| 119 |
+
* Hungarian translation by Gabor Varga
|
| 120 |
+
* Italian translation by [Pierfrancesco Marsiaj](http://profiles.wordpress.org/pierinux/)
|
| 121 |
+
* Lithuanian translation by [Ksaveras](http://profiles.wordpress.org/xawiers)
|
| 122 |
+
* Persian translation by [alimir](http://profiles.wordpress.org/alimir)
|
| 123 |
+
* Polish translation by [pik256](http://wordpress.org/support/profile/1271256)
|
| 124 |
+
* Romanian translation by [Web Hosting Geeks](http://webhostinggeeks.com/)
|
| 125 |
+
* Russian translation by [Alexey](http://wordpress.org/support/profile/asel)
|
| 126 |
+
* Serbo-Croation translation by [Web Hosting Hub](http://www.webhostinghub.com/)
|
| 127 |
+
* Slovakian translation by Boris Gereg
|
| 128 |
+
* Spanish translation by [Eduardo Aranda](http://sinetiks.com/)
|
| 129 |
+
* Swedish translation by [Per Bjälevik](http://pastis.tauzero.se)
|
| 130 |
|
| 131 |
== Installation ==
|
| 132 |
|
| 167 |
|
| 168 |
== Changelog ==
|
| 169 |
|
| 170 |
+
= 1.9.1 =
|
| 171 |
+
* Added filter to enable/disable auto login on WooCommerce checkout, by default it will be enabled.
|
| 172 |
+
|
| 173 |
= 1.8.9 =
|
| 174 |
* Issue in user search functionality.
|
| 175 |
|
| 437 |
|
| 438 |
The code for this plugin is also available at Github - https://github.com/picklewagon/new-user-approve. Pull requests welcomed.
|
| 439 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
