WP_Block_Processor::get_delimiter_type
Returns the type of the block comment delimiter.
One of:
- {@see self::OPENER}
- {@see self::CLOSER}
- {@see self::VOID}
null
Метод класса: WP_Block_Processor{}
Хуков нет.
Возвращает
Строку|null. type of the block comment delimiter, if currently matched.
Использование
$WP_Block_Processor = new WP_Block_Processor(); $WP_Block_Processor->get_delimiter_type(): ?string;
Список изменений
| С версии 6.9.0 | Введена. |
Код WP_Block_Processor::get_delimiter_type() WP Block Processor::get delimiter type WP 6.9.1
public function get_delimiter_type(): ?string {
switch ( $this->state ) {
case self::HTML_SPAN:
return self::VOID;
case self::MATCHED:
return $this->type;
default:
return null;
}
}