WP_HTML_Tag_Processor::is_tag_closer() – Indicates if the current tag token is a tag closer.
You appear to be a bot. Output may be restricted
Description
Indicates if the current tag token is a tag closer.
Example:
- $p = new WP_HTML_Tag_Processor( '<div></div>' );
- $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) );
- $p->is_tag_closer() === false;
- $p->next_tag( array( 'tag_name' => 'div', 'tag_closers' => 'visit' ) );
- $p->is_tag_closer() === true;
Usage
$bool = WP_HTML_Tag_Processor::is_tag_closer();
Parameters
Returns
bool Whether the current tag is a tag closer.
Source
File name: wordpress/wp-includes/html-api/class-wp-html-tag-processor.php