- add auto approval after the wp-admin registration

This commit is contained in:
ashubawork
2025-04-10 11:07:13 +03:00
parent 1d4d3fa850
commit 42e6e71e65
3 changed files with 21 additions and 0 deletions
@@ -753,6 +753,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'use_um_gravatar_default_image' => array(
'sanitize' => 'bool',
),
'auto_user_approve' => 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' => 'auto_user_approve',
'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',