WP_Query::is_favicon()publicWP 5.4.0

Determines whether the query is for the favicon.ico file.

Method of the class: WP_Query{}

No Hooks.

Return

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() code WP 6.5.2

public function is_favicon() {
	return (bool) $this->is_favicon;
}