pingback_useragent

pingback_useragent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pingback_useragent') is found 1 times:

  • /wp-includes/comment.php line 3167
    3163
    3164
    3165
    3166
    3167
    3168
    3169
    3170
    3171
    3172
    3173
    * @param string $pingback_server_url The server URL being linked to.
     * @param string $pagelinkedto        URL of page linked to.
     * @param string $pagelinkedfrom      URL of page linked from.
     */
    $client->useragent = apply_filters( 'pingback_useragent', $client->useragent . ' -- WordPress/' . get_bloginfo( 'version' ), $client->useragent, $pingback_server_url, $pagelinkedto, $pagelinkedfrom );
    // When set to true, this outputs debug messages by itself.
    $client->debug = false;
     
    if ( $client->query( 'pingback.ping', $pagelinkedfrom, $pagelinkedto ) || ( isset( $client->error->code ) && 48 == $client->error->code ) ) { // Already registered.
        add_ping( $post, $pagelinkedto );
    }