WP_HTML_Open_Elements::set_pop_handler()publicWP 6.6.0

Sets a pop handler that will be called when an item is popped off 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_pop_handler( $handler );
$handler(Closure) (required)
The handler function.

Changelog

Since 6.6.0 Introduced.

WP_HTML_Open_Elements::set_pop_handler() code WP 6.6.2

public function set_pop_handler( Closure $handler ) {
	$this->pop_handler = $handler;
}