A WordPress-centric search engine for devs and theme authors



http_headers_useragent ›

Since5.1.0
Deprecatedn/a
apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' )
Parameters: (2)
  • (string) $user_agent WordPress user agent string.
    Required: Yes
  • (string) $url The request URL.
    Required: Yes
Defined at:
Codex:

Filters the user agent value sent with an HTTP request.





Source

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