get_block_bindings_source( string $source_name ): WP_Block_Bindings_Source|null

In this article

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

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.