WP_Block_Bindings_Registry::is_registered │ public │ WP 6.5.0

Checks if a block bindings source is registered.

Метод класса: WP_Block_Bindings_Registry{}

Хуков нет.

Возвращает

bool. true if the block bindings source is registered, false otherwise.

Использование

$WP_Block_Bindings_Registry = new WP_Block_Bindings_Registry();
$WP_Block_Bindings_Registry->is_registered( $source_name );
$source_name(строка|null) (обязательный)
The name of the source.

Список изменений

С версии 6.5.0 Введена.

Код WP_Block_Bindings_Registry::is_registered() WP 7.1.2

public function is_registered( $source_name ) {
	return isset( $source_name, $this->sources[ $source_name ] );
}