WP_HTML_Processor::bookmark_token(): string|false

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

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

private function bookmark_token() {
	if ( ! parent::set_bookmark( ++$this->bookmark_counter ) ) {
		$this->last_error = self::ERROR_EXCEEDED_MAX_BOOKMARKS;
		throw new Exception( 'could not allocate bookmark' );
	}

	return "{$this->bookmark_counter}";
}

Changelog

VersionDescription
6.5.0Renamed from bookmark_tag() to bookmark_token().
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.