WP_Interactivity_API_Directives_Processor::has_and_visits_its_closer_tag()
Checks whether the current tag has and will visit its matching closer tag.
Method of the class: WP_Interactivity_API_Directives_Processor{}
Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.
No Hooks.
Returns
true|false
. Whether the current tag has a closer tag.
Usage
$WP_Interactivity_API_Directives_Processor = new WP_Interactivity_API_Directives_Processor(); $WP_Interactivity_API_Directives_Processor->has_and_visits_its_closer_tag(): bool;
Changelog
Since 6.5.0 | Introduced. |
WP_Interactivity_API_Directives_Processor::has_and_visits_its_closer_tag() WP Interactivity API Directives Processor::has and visits its closer tag code WP 6.8.1
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 ) ); }