WP_HTML_Tag_Processor::release_bookmark( string $name ): bool

In this article

Removes a bookmark that is no longer needed.

Description

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

Parameters

$namestringrequired
Name of the bookmark to remove.

Return

bool Whether the bookmark already existed before removal.

Source

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

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

	return true;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.