apply_filters( ‘pingback_useragent’, string $concat_useragent, string $useragent, string $pingback_server_url, string $pagelinkedto, string $pagelinkedfrom )

In this article

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

Parameters

$concat_useragentstring
The user agent concatenated with ‘ — WordPress/’ and the WordPress version.
$useragentstring
The useragent.
$pingback_server_urlstring
The server URL being linked to.
$pagelinkedtostring
URL of page linked to.
$pagelinkedfromstring
URL of page linked from.

Source

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

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.