WP_HTML_Tag_Processor::release_bookmark()publicWP 1.0

Removes a bookmark that is no longer needed.

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

Метод класса: WP_HTML_Tag_Processor{}

Хуков нет.


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


$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor();
$WP_HTML_Tag_Processor->release_bookmark( $name );
$name(строка) (обязательный)
Name of the bookmark to remove.

Код WP_HTML_Tag_Processor::release_bookmark() WP 6.3.1

public function release_bookmark( $name ) {
	if ( ! array_key_exists( $name, $this->bookmarks ) ) {
		return false;

	unset( $this->bookmarks[ $name ] );

	return true;