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



pingback_useragent ›

Since2.9.0
已弃用n/a
apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . get_bloginfo( 'version' )
参数: (5)
  • (string) $concat_useragent The user agent concatenated with ' -- WordPress/' and the WordPress version.
    Required: Yes
  • (string) $useragent The useragent.
    Required: Yes
  • (string) $pingback_server_url The server URL being linked to.
    Required: Yes
  • (string) $pagelinkedto URL of page linked to.
    Required: Yes
  • (string) $pagelinkedfrom URL of page linked from.
    Required: Yes
定义在:
文档:

Filters the user agent sent when pinging-back a URL.





源码

$client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . get_bloginfo( 'version' ), $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom );