Document the trackback_post hook in wp-trackback.php.
props bananastalktome. see #25229. git-svn-id: https://develop.svn.wordpress.org/trunk@25253 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
90605e02e7
commit
21511593a4
@ -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 );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user