WP_Block_Bindings_Registry::is_registered │ public │ WP 6.5.0

Checks if a block bindings source is registered.

Method of the class: WP_Block_Bindings_Registry{}

No Hooks.

Returns

bool. 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|null) (required)
The name of the source.

Changelog

Since 6.5.0 Introduced.

WP_Block_Bindings_Registry::is_registered() code WP 7.1.2

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