# boolean_smtp_google_validation_rules

> Filters the validation rules for Google/Gmail connection settings.

Filter · Tier B · Since 1.0.0

Return the rules, adding entries for any fields an add-on introduces.

## Signature

```php
add_filter( 'boolean_smtp_google_validation_rules', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$rules` | `array<string, string>` | Field name mapped to its validation rule string. |

**Returns** `array<string, string>` — The filtered rules.

## Fires in

- [app/Services/Mailer/Transports/GoogleTransport.php:374](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Mailer/Transports/GoogleTransport.php#L374) — `BooleanSmtp\Services\Mailer\Transports\GoogleTransport::getValidationRules()`

## Example

```php
add_filter( 'boolean_smtp_google_validation_rules', function ( array $rules ) {
    return $rules;
}, 10, 1 );
```
