boolean_smtp_aws_enable_imds_role_source
Filters whether BooleanSMTP probes the EC2 IMDSv2 endpoint for an IAM role.
filter Tier B Since 1.0.0
Signature
add_filter( 'boolean_smtp_aws_enable_imds_role_source', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether the probe is currently enabled by constant or environment variable. Return true to enable it. |
Returns bool — The filtered value.
Fires in
app/Services/Settings/CredentialSourceDetector.php:324—BooleanSmtp\Services\Settings\CredentialSourceDetector::shouldProbeIamRole()
Example
add_filter( 'boolean_smtp_aws_enable_imds_role_source', function ( bool $enabled ) { return $enabled;}, 10, 1 );Next steps
- Connections and OAuth — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.