wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_is_mobile › WordPress过滤钩子

Since4.9.0
已弃用n/a
apply_filters( 'wp_is_mobile', $is_mobile )
参数:
  • (bool) $is_mobile Whether the request is from a mobile device or not.
    Required: Yes
定义在:
文档:

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





源码

return apply_filters( 'wp_is_mobile', $is_mobile );