Make WordPress Core

Changeset 38791


Ignore:
Timestamp:
10/14/2016 07:38:17 PM (10 years ago)
Author:
rachelbaker
Message:

Pings/Trackbacks: Add new pre_trackback_post action before a trackback is added to a post.

Props dshanske, rachelbaker.
Fixes #37007.

File:
1 edited

Legend:

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

    r38741 r38791  
    9292
    9393if ( !empty($tb_url) && !empty($title) ) {
     94        /**
     95        * Fires before the trackback is added to a post.
     96        *
     97        * @since 4.7.0
     98        *
     99        * @param int    $tb_id     Post ID related to the trackback.
     100        * @param string $tb_url    Trackback URL.
     101        * @param string $charset   Character Set.
     102        * @param string $title     Trackback Title.
     103        * @param string $excerpt   Trackback Excerpt.
     104        * @param string $blog_name Blog Name.
     105        */
     106        do_action( 'pre_trackback_post', $tb_id, $tb_url, $charset, $title, $excerpt, $blog_name );
     107
    94108        header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
    95109
Note: See TracChangeset for help on using the changeset viewer.