WP_HTML_Open_Elements::set_pop_handler
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.
Returns
null. Nothing (null).
Usage
$WP_HTML_Open_Elements = new WP_HTML_Open_Elements(); $WP_HTML_Open_Elements->set_pop_handler( $handler ): void;
- $handler(Closure) (required)
- The handler function.
Changelog
| Since 6.6.0 | Introduced. |
WP_HTML_Open_Elements::set_pop_handler() WP HTML Open Elements::set pop handler code WP 6.9.1
public function set_pop_handler( Closure $handler ): void {
$this->pop_handler = $handler;
}