WP_Query::is_favicon
Determines whether the query is for the favicon.ico file.
Method of the class: WP_Query{}
No Hooks.
Returns
true|false. Whether the query is for the favicon.ico file.
Usage
global $wp_query; $wp_query->is_favicon();
Changelog
| Since 5.4.0 | Introduced. |
WP_Query::is_favicon() WP Query::is favicon code WP 7.0
public function is_favicon() {
return (bool) $this->is_favicon;
}