WP HOOKS
filtrod 4.9.0

wp_is_mobile

Args 1Plik wp-includes/vars.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether the request should be treated as coming from a mobile device or not.

Parametry

ParametrTypOpis
$is_mobileboolWhether the request is from a mobile device or not.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_is_mobile', 'twoja_funkcja' );

function twoja_funkcja($param_1) {
	// Twój kod
}

Popularne w tej kategorii