WP_Block_Processor::get_delimiter_type(): string|null

In this article

Returns the type of the block comment delimiter.

Description

One of:

Return

string|null type of the block comment delimiter, if currently matched.

Source

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;
	}
}

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.