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 |
---|---|
217 |
|
218 | $post = $post_ID = $p = (int) $_GET['post']; |
219 |
|
220 | if ( !user_can_edit_post($user_ID, $post_ID) ) |
221 | die ( __('You are not allowed to edit this post.') ); |
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; |