Skip to content

boolean_smtp_log_mailer_resolved_to_error_log

Filters whether the resolved mailer diagnostics are written to the plugin log.

filter Tier C Since 1.0.0

Return false to suppress the log line for this send.

Signature

add_filter( 'boolean_smtp_log_mailer_resolved_to_error_log', $callback, 10, 2 );

Parameters

ParameterTypeDescription
$logToPhpErrorLogboolWhether to log the diagnostics; reflects the log_mailer_diagnostics setting by default.
$diagnosticsarray<string, mixed>Diagnostic snapshot that would be logged.

Returns bool — Whether to log the resolved mailer to the PHP error log.

Fires in

Example

boolean_smtp_log_mailer_resolved_to_error_log.php
add_filter( 'boolean_smtp_log_mailer_resolved_to_error_log', function ( bool $logToPhpErrorLog, array $diagnostics ) {
return $logToPhpErrorLog;
}, 10, 2 );

Next steps