WP_HTML_Open_Elements::set_push_handler()publicWP 6.6.0

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

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

Method of the class: WP_HTML_Open_Elements{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->set_push_handler( $handler );
$handler(Closure) (required)
The handler function.

Changelog

Since 6.6.0 Introduced.

WP_HTML_Open_Elements::set_push_handler() code WP 6.6.2

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