Constructor – creates a reference to a token in some external HTML string.
$bookmark_namestringrequired
$node_namestringrequired
$has_self_closing_flagboolrequired
$on_destroycallableoptional
Default:null
/**
* Called when token is garbage-collected or otherwise destroyed.
*
* @var callable|null
*/
| Version | Description |
|---|---|
| 6.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_html_token/__construct