WP_HTML_Tag_Processor::has_bookmark
Checks whether a bookmark with the given name exists.
Method of the class: WP_HTML_Tag_Processor{}
No Hooks.
Returns
true|false. Whether that bookmark exists.
Usage
$WP_HTML_Tag_Processor = new WP_HTML_Tag_Processor(); $WP_HTML_Tag_Processor->has_bookmark( $bookmark_name ): bool;
- $bookmark_name(string) (required)
- Name to identify a bookmark that potentially exists.
Changelog
| Since 6.3.0 | Introduced. |
WP_HTML_Tag_Processor::has_bookmark() WP HTML Tag Processor::has bookmark code WP 6.9
public function has_bookmark( $bookmark_name ): bool {
return array_key_exists( $bookmark_name, $this->bookmarks );
}