add_filter('frm_validate_field_entry', 'check_user_pass', 10, 3); function check_user_pass($errors, $posted_field, $posted_value){ if($posted_field->id == 1177){ //change 1177 to the ID of the password field to validate if(!preg_match('/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z!@#$%&*\(\)?\d]{8,}$/', $posted_value)) { $errors['field'. $posted_field->id] = 'Password must be at least 8 characters long and contain at least 1 number and 1 letter'; } } return $errors; }
X
X