wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_is_connector_registered › WordPress Function

Od7.0.0
Przestarzałyn/a
› wp_is_connector_registered ( $id )
Parametry:
  • (string) $id The connector identifier.
    Wymagane: Tak
Zobacz:
  • WP_Connector_Registry::is_registered()
Powrót:
  • (bool) True if the connector is registered, false otherwise.
Zdefiniowane na:
Codex:

Checks if a connector is registered.



Źródło

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

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