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



http_headers_useragent ›

Since5.1.0
已弃用n/a
apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' )
参数: (2)
  • (string) $user_agent WordPress user agent string.
    Required: Yes
  • (string) $url The request URL.
    Required: Yes
定义在:
文档:

Filters the user agent value sent with an HTTP request.





源码

'user-agent'          => apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $url ),