WP_Block_Bindings_Registry::is_registered()
Checks if a block bindings source is registered.
Метод класса: WP_Block_Bindings_Registry{}
Хуков нет.
Возвращает
true|false
. 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(строка) (обязательный)
- The name of the source.
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Block_Bindings_Registry::is_registered() WP Block Bindings Registry::is registered WP 6.7.1
public function is_registered( $source_name ) { return isset( $this->sources[ $source_name ] ); }