WP_Block_Type::is_dynamic()publicWP 5.0.0

Returns true if the block type is dynamic, or false otherwise. A dynamic block is one which defers its rendering to occur on-demand at runtime.

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

Хуков нет.

Возвращает

true|false. Whether block type is dynamic.

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

$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->is_dynamic();

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

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

Код WP_Block_Type::is_dynamic() WP 6.6.2

public function is_dynamic() {
	return is_callable( $this->render_callback );
}