apply_filters( ‘wp_is_mobile’, bool $is_mobile )

In this article

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

return apply_filters( 'wp_is_mobile', $is_mobile );

Changelog

VersionDescription
4.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.