wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_favicon › WordPress Function

Depuis5.4.0
Dépréciéen/a
is_favicon ( Pas de paramètres )
Retourne:
  • (bool) Whether the query is for the favicon.ico file.
Défini(e) dans:
Codex:

Is the query for the favicon.ico file?



Fonctions en relation: do_favicon, is_admin, did_action, has_action, is_info

Source

function is_favicon() {
	global $wp_query;

	if ( ! isset( $wp_query ) ) {
		_doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
		return false;
	}

	return $wp_query->is_favicon();
}