pingback_useragent

pingback_useragent

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('pingback_useragent') is found 1 times:

  • /wp-includes/comment.php line 3138
    			 * @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 );
    			}