WP_HTML_Tag_Processor::release_bookmark
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_Tag_Processor{}
No Hooks.
Returns
true|false. Whether the bookmark already existed before removal.
Usage
$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor(); $WP_HTML_Tag_Processor->release_bookmark( $name ): bool;
- $name(string) (required)
- Name of the bookmark to remove.
WP_HTML_Tag_Processor::release_bookmark() WP HTML Tag Processor::release bookmark code WP 6.9
public function release_bookmark( $name ): bool {
if ( ! array_key_exists( $name, $this->bookmarks ) ) {
return false;
}
unset( $this->bookmarks[ $name ] );
return true;
}