wp_is_connector_registered( string $id ): bool

Checks if a connector is registered.

Description

See also

Parameters

$idstringrequired
The connector identifier.

Return

bool True if the connector is registered, false otherwise.

Source

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

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

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.