boolean_smtp_google_settings_schema
Filters the Google/Gmail connection settings schema before it is returned to the admin UI.
filter Tier B Since 1.0.0
Allows an add-on to extend the schema with fields for an additional delivery mode (for example, a hosted OAuth proxy). Return the schema, keyed by field name.
Signature
add_filter( 'boolean_smtp_google_settings_schema', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$schema | array<string, array{type: string, label: string, required: bool, default?: mixed}> | Settings schema keyed by field name. |
Returns array<string, array{type: string, label: string, required: bool, default?: mixed}> — The filtered schema.
Fires in
app/Services/Mailer/Transports/GoogleTransport.php:299—BooleanSmtp\Services\Mailer\Transports\GoogleTransport::getSettingsSchema()
Example
add_filter( 'boolean_smtp_google_settings_schema', function ( array $schema ) { return $schema;}, 10, 1 );Next steps
- Provider transports — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.