WP_Block_Bindings_Registry::get_registered( 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

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

	return $this->sources[ $source_name ];
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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