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
add_filter( 'boolean_smtp_google_validation_rules', $callback, 10, 1 );Parameters
| Parameter | 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—BooleanSmtp\Services\Mailer\Transports\GoogleTransport::getValidationRules()
Example
add_filter( 'boolean_smtp_google_validation_rules', function ( array $rules ) { return $rules;}, 10, 1 );Next steps
- Provider transports — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.