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 |
|---|---|
| 222 | |
| 223 | $postdata = &get_post($post_ID); |
| 224 | $content = $postdata->post_content; |
| 225 | $content = format_to_edit($content); |
| 226 | $content = apply_filters('content_edit_pre', $content); |
| 227 | $excerpt = $postdata->post_excerpt; |
| 228 | $excerpt = format_to_edit($excerpt); |
| 229 | $excerpt = apply_filters('excerpt_edit_pre', $excerpt); |
| 230 | $edited_post_title = format_to_edit($postdata->post_title); |
| 231 | $edited_post_title = apply_filters('title_edit_pre', $edited_post_title); |
| 232 | $post_status = $postdata->post_status; |
| 233 | $comment_status = $postdata->comment_status; |
| 234 | $ping_status = $postdata->ping_status; |
| 235 | $post_password = $postdata->post_password; |
| 236 | $to_ping = $postdata->to_ping; |
| 237 | $pinged = $postdata->pinged; |
| 238 | $post_name = $postdata->post_name; |
| 239 | $post_parent = $postdata->post_parent; |
| 240 | $post_author = $postdata->post_author; |