WP_HTML_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 parent::has_bookmark( "_{$bookmark_name}" );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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