Skip to content

boolean_smtp_load_first

Filters whether BooleanSMTP keeps itself first in the plugin load order.

filter Tier A Since 1.0.0

Being first is what lets the plugin define `wp_mail()` and therefore send, log and alert on the site's email. Return false to leave the order alone — on a site that deliberately lets another plugin handle mail, for instance.

Signature

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

Parameters

ParameterTypeDescription
$enabledboolWhether to move the plugin to the front. Default true.
$pluginFilestringThe plugin's entry file, as `plugin_basename()` returns it.

Returns bool — Whether to move the plugin to the front.

Fires in

Example

boolean_smtp_load_first.php
add_filter( 'boolean_smtp_load_first', function ( bool $enabled, string $pluginFile ) {
return $enabled;
}, 10, 2 );

Next steps