Merge pull request #1672 from ultimatemember/feature/user_auto_approve

User auto approve
This commit is contained in:
Mykyta Synelnikov
2025-04-14 16:05:20 +03:00
committed by GitHub
3 changed files with 23 additions and 1 deletions
@@ -753,6 +753,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'use_um_gravatar_default_image' => array(
'sanitize' => 'bool',
),
'admin_ignore_user_status' => array(
'sanitize' => 'bool',
),
'delete_comments' => array(
'sanitize' => 'bool',
),
@@ -1182,6 +1185,13 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'description' => __( 'Do you want to use the plugin default avatar instead of the gravatar default photo (If the user did not upload a custom profile photo/avatar).', 'ultimate-member' ),
'conditional' => array( 'use_um_gravatar_default_builtin_image', '=', 'default' ),
),
array(
'id' => 'admin_ignore_user_status',
'type' => 'checkbox',
'label' => __( 'Ignore the "User Role > Registration Options"', 'ultimate-member' ),
'checkbox_label' => __( 'Automatically approve users from the wp-admin dashboard', 'ultimate-member' ),
'description' => __( 'Ignore registration settings and automatically approve the user if this user is added from the wp-admin dashboard.', 'ultimate-member' ),
),
array(
'id' => 'delete_comments',
'type' => 'checkbox',