Document the trackback_post hook in wp-trackback.php.

props bananastalktome.
see #25229.

Built from https://develop.svn.wordpress.org/trunk@25253


git-svn-id: http://core.svn.wordpress.org/trunk@25221 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-09-05 16:23:09 +00:00
parent 5a1109b40b
commit 747e022460
1 changed files with 9 additions and 2 deletions

View File

@ -104,7 +104,14 @@ if ( !empty($tb_url) && !empty($title) ) {
$commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type');
wp_new_comment($commentdata);
$trackback_id = $wpdb->insert_id;
do_action('trackback_post', $wpdb->insert_id);
trackback_response(0);
/**
* Fires after a trackback is added to a post
*
* @since 1.2.0
* @param int $trackback_id Trackback ID.
*/
do_action( 'trackback_post', $trackback_id );
trackback_response( 0 );
}