WP_HTML_Open_Elements::set_push_handler( Closure $handler )

In this article

Sets a push handler that will be called when an item is pushed onto the stack of open elements.

Description

The function will be called with the pushed item as its argument.

Parameters

$handlerClosurerequired
The handler function.

Source

public function set_push_handler( Closure $handler ): void {
	$this->push_handler = $handler;
}

Changelog

VersionDescription
6.6.0Introduced.

User Contributed Notes

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