Added: Hook to unlock the ability to add new users through the registration form

This commit is contained in:
nikitasinelnikov
2021-04-27 00:21:32 +03:00
parent 12dca8b826
commit ea496625f8
3 changed files with 13 additions and 2 deletions
+4 -1
View File
@@ -677,7 +677,10 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
//not display on admin preview
if ( empty( $_POST['act_id'] ) || $_POST['act_id'] != 'um_admin_preview_form' ) {
if ( 'register' == $mode && is_user_logged_in() ) {
$enable_loggedin_registration = apply_filters( 'um_registration_for_loggedin_users', false, $args );
if ( 'register' == $mode && is_user_logged_in() && ! $enable_loggedin_registration ) {
ob_get_clean();
return __( 'You are already registered', 'ultimate-member' );
}
+8
View File
@@ -155,6 +155,14 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
* To learn more about version 2.1 please see this [docs](https://docs.ultimatemember.com/article/1512-upgrade-2-1-0)
* UM2.1+ is a significant update to the Member Directories' code base from 2.0.x. Please make sure you take a full-site backup with restore point before updating the plugin
= 2.1.20: May xx, 2021 =
* Enhancements:
- Added: Hook to unlock the ability to add new users through the registration form
* Bugfixes:
- Fixed: Temp directory size calculation
= 2.1.19: April 20, 2021 =
* Bugfixes:
+1 -1
View File
@@ -3,7 +3,7 @@
Plugin Name: Ultimate Member
Plugin URI: http://ultimatemember.com/
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
Version: 2.1.19
Version: 2.1.20-alpha
Author: Ultimate Member
Author URI: http://ultimatemember.com/
Text Domain: ultimate-member