WP_Connector_Registry::is_registeredpublicWP 7.0.0

Checks if a connector is registered.

Do not use this method directly. Instead, use the wp_is_connector_registered()

Method of the class: WP_Connector_Registry{}

No Hooks.

Returns

true|false. True if the connector is registered, false otherwise.

Usage

$WP_Connector_Registry = new WP_Connector_Registry();
$WP_Connector_Registry->is_registered( $id ): bool;
$id(string) (required)
The connector identifier.

Notes

Changelog

Since 7.0.0 Introduced.

WP_Connector_Registry::is_registered() code WP 7.0.4

public function is_registered( string $id ): bool {
	return isset( $this->registered_connectors[ $id ] );
}