WP_HTML_Open_Elements::remove_node( WP_HTML_Token $token ): bool

In this article

Removes a specific node from the stack of open elements.

Parameters

$tokenWP_HTML_Tokenrequired
The node to remove from the stack of open elements.

Return

bool Whether the node was found and removed from the stack of open elements.

Source

	return true;
}

/**
 * Pops nodes off of the stack of open elements until one with the given tag name has been popped.
 *
 * @since 6.4.0
 *
 * @see WP_HTML_Open_Elements::pop
 *
 * @param string $tag_name Name of tag that needs to be popped off of the stack of open elements.
 * @return bool Whether a tag of the given name was found and popped off of the stack of open elements.
 */
public function pop_until( $tag_name ) {

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

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