WP_Block_Processor::has_closing_flagpublicWP 6.9.0

Returns whether the delimiter contains the closing flag.

This should be avoided except in cases of custom error-handling with block closers containing the void flag. For normative use, {@see self::get_delimiter_type()}.

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

Хуков нет.

Возвращает

true|false. Whether the currently-matched block delimiter contains the closing flag.

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

$WP_Block_Processor = new WP_Block_Processor();
$WP_Block_Processor->has_closing_flag(): bool;

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

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

Код WP_Block_Processor::has_closing_flag() WP 6.9.1

public function has_closing_flag(): bool {
	return $this->has_closing_flag;
}