WP_Block_Bindings_Registry::is_registered()publicWP 6.5.0

Checks if a block bindings source is registered.

Method of the class: WP_Block_Bindings_Registry{}

No Hooks.

Return

true|false. true if the block bindings source is registered, false otherwise.

Usage

$WP_Block_Bindings_Registry = new WP_Block_Bindings_Registry();
$WP_Block_Bindings_Registry->is_registered( $source_name );
$source_name(string) (required)
The name of the source.

Changelog

Since 6.5.0 Introduced.

WP_Block_Bindings_Registry::is_registered() code WP 6.5.4

public function is_registered( $source_name ) {
	return isset( $this->sources[ $source_name ] );
}