filtrod 4.9.0
wp_is_mobile
Opis — z kodu źródłowego
Filters whether the request should be treated as coming from a mobile device or not.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$is_mobile | bool | Whether 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
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_is_mobile', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii