boolean_smtp_debug_http_mailer_url_match
Filters whether a URL not matched by the built-in provider list counts as mail-related.
filter Tier C Since 1.0.0
Signature
add_filter( 'boolean_smtp_debug_http_mailer_url_match', $callback, 10, 2 );Parameters
| Parameter | Type | Description |
|---|---|---|
$matches | bool | Whether the URL should be treated as mail-related. Default false. |
$url | string | The URL being checked. |
Returns bool — Whether the URL belongs to a mailer.
Fires in
app/Support/Debug/WordPressDebugLogger.php:1651—BooleanSmtp\Support\Debug\WordPressDebugLogger::urlLooksLikeMailRelated()
Example
add_filter( 'boolean_smtp_debug_http_mailer_url_match', function ( bool $matches, string $url ) { return $matches;}, 10, 2 );Next steps
- Internal (unstable) — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.