Checks whether a bookmark with the given name exists.
Parameters
$bookmark_name
stringrequired- Name to identify a bookmark that potentially exists.
Source
public function has_bookmark( $bookmark_name ) {
return array_key_exists( $bookmark_name, $this->bookmarks );
}
Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.