wp_is_connector_registered()
Checks if a connector is registered.
No Hooks.
Returns
true|false. True if the connector is registered, false otherwise.
Usage
wp_is_connector_registered( $id ): bool;
- $id(string) (required)
- The connector identifier.
Notes
Changelog
| Since 7.0.0 | Introduced. |
wp_is_connector_registered() wp is connector registered code WP 7.0.2
function wp_is_connector_registered( string $id ): bool {
$registry = WP_Connector_Registry::get_instance();
if ( null === $registry ) {
return false;
}
return $registry->is_registered( $id );
}