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.
Метод класса: WP_HTML_Tag_Processor{}
Хуков нет.
Возвращает
bool. Whether the bookmark already existed before removal.
Использование
$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor(); $WP_HTML_Tag_Processor->release_bookmark( $name ): bool;
- $name(строка) (обязательный)
- Name of the bookmark to remove.
Код WP_HTML_Tag_Processor::release_bookmark() WP HTML Tag Processor::release bookmark WP 7.1
public function release_bookmark( $name ): bool {
if ( ! array_key_exists( $name, $this->bookmarks ) ) {
return false;
}
unset( $this->bookmarks[ $name ] );
return true;
}