WP_HTML_Token::__destructpublicWP 6.4.0

Destructor.

Method of the class: WP_HTML_Token{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WP_HTML_Token = new WP_HTML_Token();
$WP_HTML_Token->__destruct();

Changelog

Since 6.4.0 Introduced.

WP_HTML_Token::__destruct() code WP 6.8.3

public function __destruct() {
	if ( is_callable( $this->on_destroy ) ) {
		call_user_func( $this->on_destroy, $this->bookmark_name );
	}
}