WP_Block_Bindings_Registry::is_registered( string $source_name ): bool

In this article

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

VersionDescription
6.5.0Introduced.

User Contributed Notes

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