pingback_useragent

pingback_useragent

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

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('pingback_useragent') is found 1 times:

  • /wp-includes/comment.php line 3203
    			 * @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;
    
    			$status = $client->query( 'pingback.ping', $pagelinkedfrom, $pagelinkedto );
    
    			if ( $status // Ping registered.