wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_is_connector_registered › WordPress Function

Da7.0.0
Deprecaton/a
› wp_is_connector_registered ( $id )
Parametri:
  • (string) $id The connector identifier.
    Richiesto: Sì
Vedi:
  • WP_Connector_Registry::is_registered()
Ritorna:
  • (bool) True if the connector is registered, false otherwise.
Definito a:
Codex:

Checks if a connector is registered.



Sorgenti

function wp_is_connector_registered( string $id ): bool {
	$registry = WP_Connector_Registry::get_instance();
	if ( null === $registry ) {
		return false;
	}

	return $registry->is_registered( $id );
}