W3cubDocs

/WordPress

WP_Block_Bindings_Registry::is_registered( string $source_name ): bool

Checks if a block bindings source is registered.

Parameters

$source_namestringrequired
The name of the source.

Return

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

Source

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

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_block_bindings_registry/is_registered