WP_HTML_Open_Elements::set_push_handler │ public │ WP 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.

Метод класса: WP_HTML_Open_Elements{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_HTML_Open_Elements = new WP_HTML_Open_Elements();
$WP_HTML_Open_Elements->set_push_handler( $handler ): void;
$handler(Closure) (обязательный)
The handler function.

Список изменений

С версии 6.6.0 Введена.

Код WP_HTML_Open_Elements::set_push_handler() WP 7.1.3

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