W3cubDocs

/WordPress

WP_Block_Bindings_Registry::get_registered( string $source_name ): WP_Block_Bindings_Source|null

Retrieves a registered block bindings source.

Parameters

$source_namestringrequired
The name of the source.

Return

WP_Block_Bindings_Source|null The registered block bindings source, or null if it is not registered.

Source

public function get_registered( string $source_name ) {
	if ( ! $this->is_registered( $source_name ) ) {
		return null;
	}

	return $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/get_registered