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.
Return
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 );
- $name(string) (required)
- Name of the bookmark to remove.
WP_HTML_Tag_Processor::release_bookmark() WP HTML Tag Processor::release bookmark code WP 6.6.2
public function release_bookmark( $name ) { if ( ! array_key_exists( $name, $this->bookmarks ) ) { return false; } unset( $this->bookmarks[ $name ] ); return true; }