W3cubDocs

/WordPress

WP_HTML_Processor::bookmark_token(): string|false

Creates a new bookmark for the currently-matched token and returns the generated name.

Return

string|false Name of created bookmark, or false if unable to create.

Source

/*
 * > A start tag whose tag name is "html"
 */
case '+HTML':
	return $this->step_in_body();

/*
 * > A start tag whose tag name is "head"

Changelog

Version Description
6.5.0 Renamed from bookmark_tag() to bookmark_token().
6.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_html_processor/bookmark_token