wphooks.info - pre_trackback_post

pre_trackback_post

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

/wp-trackback.php:
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
	 *
	 * @since 4.7.0
	 *
	 * @param int    $tb_id     Post ID related to the trackback.
	 * @param string $tb_url    Trackback URL.
	 * @param string $charset   Character Set.
	 * @param string $title     Trackback Title.
	 * @param string $excerpt   Trackback Excerpt.
	 * @param string $blog_name Blog Name.
	 */
	do_action( 'pre_trackback_post', $tb_id, $tb_url, $charset, $title, $excerpt, $blog_name );

	header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) );

	if ( ! pings_open( $tb_id ) ) {
		trackback_response( 1, __( 'Sorry, trackbacks are closed for this item.' ) );
	}

	$title   = wp_html_excerpt( $title, 250, '…' );
	$excerpt = wp_html_excerpt( $excerpt, 252, '…' );