get_block_bindings_source()WP 6.5.0

Retrieves a registered block bindings source.

No Hooks.

Returns

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

Usage

get_block_bindings_source( $source_name );
$source_name(string) (required)
The name of the source.

Changelog

Since 6.5.0 Introduced.

get_block_bindings_source() code WP 6.8.1

function get_block_bindings_source( string $source_name ) {
	return WP_Block_Bindings_Registry::get_instance()->get_registered( $source_name );
}