Skip to content

boolean_smtp_oauth_providers_register

Fires after the built-in OAuth providers have been registered.

action Tier A Since 1.0.0

Use {@see OAuthProviderRegistry::registerProvider()} from a callback on this action to add a custom OAuth-enabled provider before the registry is first read.

Signature

add_action( 'boolean_smtp_oauth_providers_register', $callback, 10, 1 );

Parameters

ParameterTypeDescription
$registryClassclass-stringFully qualified name of {@see OAuthProviderRegistry}.

Fires in

Example

boolean_smtp_oauth_providers_register.php
add_action( 'boolean_smtp_oauth_providers_register', function ( string $registryClass ) {
// React to the event.
}, 10, 1 );

Next steps