pingback_useragent WordPress Filter Hook

The pingback_useragent hook is used to override the user agent used when making pingback requests.

apply_filters( 'pingback_useragent', string $concat_useragent, string $useragent, string $pingback_server_url, string $pagelinkedto, string $pagelinkedfrom ) #

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


Parameters

$concat_useragent

(string)The user agent concatenated with ' -- WordPress/' and the WordPress version.

$useragent

(string)The useragent.

$pingback_server_url

(string)The server URL being linked to.

$pagelinkedto

(string)URL of page linked to.

$pagelinkedfrom

(string)URL of page linked from.


Top ↑

Source

File: wp-includes/comment.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More