WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Precisely -what- data is sent to/from a wordpress blog when you enable trackbacks and pingbacks? Can I capture this data?

The Introduction To Blogging post on Wordpress states that more data is being sent besides the URL, but precisely -what-... and how can I control it? ie. is the post excerpt being sent? Are the comments from the linking blog being received (and if so, how do I capture them?)

That blog post says that one uses HTTP and the other XML-RPC so I wonder if there is a single mechanism for capturing both types of data.

share|improve this question
up vote 2 down vote accepted

For pingbacks, it seems only the linked page/post and the page/post it linked from are sent. Check out the pingback() function, specifically this line:

 $client->query( 'pingback.ping', $pagelinkedfrom, $pagelinkedto );

... where $client is an instance of WP_HTTP_IXR_Client. The query method uses IXR_Request to package up a simple XML document:

<?xml version="1.0"?>

... which is then sent to the pingback server URL (passed in when $client is instantiated).

Trackbacks, little more straightforward, and with a bit more data - see trackback():

$options['body'] = array(
    'title' => $title,
    'url' => get_permalink($ID),
    'blog_name' => get_option('blogname'),
    'excerpt' => $excerpt

// WP_Http will automatically convert body to a HTTP query string
$response = wp_safe_remote_post( $trackback_url, $options );

As for handling/intercepting the responses, check out the source of wp_xmlrpc_server::pingback_ping() in wp-includes/class-wp-xmlrpc-server.php for pings, and the file wp-trackback.php for trackbacks.

You'll quickly see what actions/filters you have available, and how much you can interact with (& alter) the responses.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.