WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
109 | * @since 4.7.0 |
110 | * |
111 | * @param int $post_id Post ID related to the trackback. |
112 | * @param string $trackback_url Trackback URL. |
113 | * @param string $charset Character set. |
114 | * @param string $title Trackback title. |
115 | * @param string $excerpt Trackback excerpt. |
116 | * @param string $blog_name Site name. |
117 | */ |
118 | do_action( 'pre_trackback_post', $post_id, $trackback_url, $charset, $title, $excerpt, $blog_name ); |
119 |
|
120 | header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); |
121 |
|
122 | if ( ! pings_open( $post_id ) ) { |
123 | trackback_response( 1, __( 'Sorry, trackbacks are closed for this item.' ) ); |
124 | } |
125 |
|
126 | $title = wp_html_excerpt( $title, 250, '…' ); |
127 | $excerpt = wp_html_excerpt( $excerpt, 252, '…' ); |