Hi @kimphuongtu135
Thanks for writing in,
For limit the character, please add the following code in functions.php of you theme file.
add_action( 'user_registration_validate_user_pass', 'ur_validate_user_pass_field', 10, 4 );
function ur_validate_user_pass_field( $single_form_field, $data, $filter_hook, $form_id ) {
$field_label = isset( $data->label ) ? $data->label : '';
$password = isset( $data->value ) ? $data->value : '';
if ( 10 < strlen( $password ) ) {
add_filter(
$filter_hook,
function ( $msg ) use ( $field_label ) {
return __( $field_label . ' cannot exceed 10 characters.', 'user-registration' );
}
);
}
}
Also, you can use ‘Enable Strong Password’ feature in the Form Setting to ask users to enter strong passwords.
Regards!
WPEverest Support Team.
Hi @kimphuongtu135,
Since you haven’t written us back for few days/weeks, you are going to mark this ticket as resolved.
Please let us know if you have any questions.
Regards!