On this page
apply_filters( 'wp_is_mobile', bool $is_mobile )
Filters whether the request should be treated as coming from a mobile device or not.
Parameters
$is_mobilebool-
Whether the request is from a mobile device or not.
Source
File: wp-includes/vars.php. View all references
return apply_filters( 'wp_is_mobile', $is_mobile );
Related
Used By
| Used By | Description |
|---|---|
| wp_is_mobile() wp-includes/vars.php | Test if the current browser runs on a mobile device (smart phone, tablet, etc.) |
Changelog
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_is_mobile