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
Method of the class: WP_Block_Processor{}
No Hooks.
Returns
String|null. type of the block comment delimiter, if currently matched.
Usage
$WP_Block_Processor = new WP_Block_Processor(); $WP_Block_Processor->get_delimiter_type(): ?string;
Changelog
| Since 6.9.0 | Introduced. |
WP_Block_Processor::get_delimiter_type() WP Block Processor::get delimiter type code 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;
}
}