Summery Summery

Send a Trackback.

Syntax Syntax

trackback( string $trackback_url, string $title, string $excerpt, int $ID )

Description Description

Updates database when sending trackback to prevent duplicates.

Parameters Parameters


(Required) URL to send trackbacks.


(Required) Title of post.


(Required) Excerpt of post.


(Required) Post ID.

Return Return

(int|false|void) Database query from update.

Source Source

File: wp-includes/comment.php

		if ( '' !== $service ) {
			weblog_ping( $service );

	return $post_id;

 * Pings back the links found in a post.
 * @since 0.71
 * @since 4.7.0 `$post_id` can be a WP_Post object.
 * @param string      $content Post content to check for links. If empty will retrieve from post.
 * @param int|WP_Post $post_id Post Object or ID.
function pingback( $content, $post_id ) {
	include_once ABSPATH . WPINC . '/class-IXR.php';
	include_once ABSPATH . WPINC . '/class-wp-http-ixr-client.php';

	// Original code by Mort (
	$post_links = array();

	$post = get_post( $post_id );


Changelog Changelog

Version Description
0.71 Introduced.


Leave a Reply