WordPress.org

Make WordPress Core

Changeset 25253


Ignore:
Timestamp:
09/05/2013 04:22:14 PM (6 years ago)
Author:
nacin
Message:

Document the trackback_post hook in wp-trackback.php.

props bananastalktome.
see #25229.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-trackback.php

    r25001 r25253  
    105105
    106106    wp_new_comment($commentdata);
     107    $trackback_id = $wpdb->insert_id;
    107108
    108     do_action('trackback_post', $wpdb->insert_id);
    109     trackback_response(0);
     109    /**
     110     * Fires after a trackback is added to a post
     111     *
     112     * @since 1.2.0
     113     * @param int $trackback_id Trackback ID.
     114     */
     115    do_action( 'trackback_post', $trackback_id );
     116    trackback_response( 0 );
    110117}
Note: See TracChangeset for help on using the changeset viewer.