# 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

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

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$registryClass` | `class-string` | Fully qualified name of {@see OAuthProviderRegistry}. |

## Fires in

- [app/Services/OAuth/OAuthProviderRegistry.php:97](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/OAuth/OAuthProviderRegistry.php#L97) — `BooleanSmtp\Services\OAuth\OAuthProviderRegistry::initialize()`

## Example

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