WP_HTML_Processor::release_bookmarkpublicWP 6.4.0

Removes a bookmark that is no longer needed.

Releasing a bookmark frees up the small performance overhead it requires.

Method of the class: WP_HTML_Processor{}

No Hooks.

Returns

true|false. Whether the bookmark already existed before removal.

Usage

$WP_HTML_Processor = new WP_HTML_Processor();
$WP_HTML_Processor->release_bookmark( $bookmark_name ): bool;
$bookmark_name(string) (required)
Name of the bookmark to remove.

Changelog

Since 6.4.0 Introduced.

WP_HTML_Processor::release_bookmark() code WP 7.0

public function release_bookmark( $bookmark_name ): bool {
	return parent::release_bookmark( "_{$bookmark_name}" );
}