WP_Query::is_favicon()publicWP 5.4.0

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

Метод класса: WP_Query{}

Хуков нет.

Возвращает

true|false. Whether the query is for the favicon.ico file.

Использование

global $wp_query;
$wp_query->is_favicon();

Список изменений

С версии 5.4.0 Введена.

Код WP_Query::is_favicon() WP 6.8

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