WP_HTML_Tag_Processor::has_bookmark( string $bookmark_name ): bool

In this article

Checks whether a bookmark with the given name exists.

Parameters

$bookmark_namestringrequired
Name to identify a bookmark that potentially exists.

Return

bool Whether that bookmark exists.

Source

public function has_bookmark( $bookmark_name ) {
	return array_key_exists( $bookmark_name, $this->bookmarks );
}

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

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