boolean_smtp_debug_queries_enabled
Filters whether the database-query debug channel is enabled.
filter Tier C Since 1.0.0
Signature
add_filter( 'boolean_smtp_debug_queries_enabled', $callback, 10, 1 );Parameters
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Default false; true when the `BOOLEAN_SMTP_DEBUG_QUERIES` constant is set or the `boolean_smtp_log_file_enabled` filter switches the `queries` log channel on. |
Returns bool — The filtered value.
Fires in
app/Support/Debug/WordPressDebugLogger.php:1367—BooleanSmtp\Support\Debug\WordPressDebugLogger::channelQueries()
Example
add_filter( 'boolean_smtp_debug_queries_enabled', function ( bool $enabled ) { return $enabled;}, 10, 1 );Next steps
- Internal (unstable) — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.