WP_Interactivity_API_Directives_Processor::has_and_visits_its_closer_tag(): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Checks whether the current tag has and will visit its matching closer tag.

Return

bool Whether the current tag has a closer tag.

Source

public function has_and_visits_its_closer_tag(): bool {
	$tag_name = $this->get_tag();

	return null !== $tag_name && (
		! WP_HTML_Processor::is_void( $tag_name ) &&
		! in_array( $tag_name, self::TAGS_THAT_DONT_VISIT_CLOSER_TAG, true )
	);
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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