Skip to content

boolean_smtp_debug_mailer_action_enabled

Filters whether the mailer-diagnostics debug channel is enabled.

filter Tier C Since 1.0.0

Signature

add_filter( 'boolean_smtp_debug_mailer_action_enabled', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$enabledboolDefault false; true when the `BOOLEAN_SMTP_DEBUG_MAILER` constant is set or the `boolean_smtp_log_file_enabled` filter switches the `mail` log channel on.

Returns bool — The filtered value.

Fires in

Example

boolean_smtp_debug_mailer_action_enabled.php
add_filter( 'boolean_smtp_debug_mailer_action_enabled', function ( bool $enabled ) {
return $enabled;
}, 10, 1 );

Next steps