Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre_trackback_post

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
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
108      header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
109
110      if ( !pings_open($tb_id) )
111           trackback_response( 1, __( 'Sorry, trackbacks are closed for this item.' ) );
112
113      $title =  wp_html_excerpt( $title, 250, '…' );
114      $excerpt = wp_html_excerpt( $excerpt, 252, '…' );
115