WordPress\AiClient\Providers
ProviderRegistry::hasProvider
Checks if a provider is registered.
Method of the class: ProviderRegistry{}
No Hooks.
Returns
true|false. True if the provider is registered.
Usage
$ProviderRegistry = new ProviderRegistry(); $ProviderRegistry->hasProvider( $idOrClassName ): bool;
- $idOrClassName(string|class-string
) (required) - The provider ID or class name to check.
Changelog
| Since 0.1.0 | Introduced. |
ProviderRegistry::hasProvider() ProviderRegistry::hasProvider code WP 7.0.4
public function hasProvider(string $idOrClassName): bool
{
return $this->isRegisteredId($idOrClassName) || $this->isRegisteredClassName($idOrClassName);
}