WP_HTML_Token::__destruct()publicWP 6.4.0

Destructor.

Method of the class: WP_HTML_Token{}

No Hooks.

Return

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.6.2

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