Indicates if the currently-matched node expects a closing token, or if it will self-close on the next step.
Description
Most HTML elements expect a closer, such as a P element or a DIV element. Others, like an IMG element are void and don’t have a closing tag. Special elements, such as SCRIPT and STYLE, are treated just like void tags. Text nodes and self-closing foreign content will also act just like a void tag, immediately closing as soon as the processor advances to the next token.
Parameters
$node
?WP_HTML_Tokenoptional- Node to examine instead of current node, if provided.
Default:
null
Source
return false;
}
if ( is_string( $query ) ) {
$query = array( 'breadcrumbs' => array( $query ) );
}
if ( ! is_array( $query ) ) {
_doing_it_wrong(
__METHOD__,
__( 'Please pass a query array to this function.' ),
'6.4.0'
);
return false;
}
if ( isset( $query['tag_name'] ) ) {
Changelog
Version | Description |
---|---|
6.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.