WP_HTML_Processor::has_bookmark()
Checks whether a bookmark with the given name exists.
Method of the class: WP_HTML_Processor{}
No Hooks.
Return
true|false
. Whether that bookmark exists.
Usage
$WP_HTML_Processor = new WP_HTML_Processor(); $WP_HTML_Processor->has_bookmark( $bookmark_name );
- $bookmark_name(string) (required)
- Name to identify a bookmark that potentially exists.
Changelog
Since 6.5.0 | Introduced. |
WP_HTML_Processor::has_bookmark() WP HTML Processor::has bookmark code WP 6.6.2
public function has_bookmark( $bookmark_name ) { return parent::has_bookmark( "_{$bookmark_name}" ); }