wp_is_mobile

过滤钩子


apply_filters( 'wp_is_mobile', $is_mobile )
参数
  • (bool)
    $is_mobile
    Whether the request is from a mobile device or not.
    Required:
定义位置
  • wp-includes/vars.php
    , line 170
引入
4.9.0
弃用

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

return apply_filters( 'wp_is_mobile', $is_mobile );