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 |
---|---|
63 | die ( __('You are not allowed to edit this post.') ); |
64 |
|
65 | $post = get_post_to_edit($post_ID); |
66 |
|
67 | include('edit-form-advanced.php'); |
68 |
|
69 | ?> |
70 | <div id='preview' class='wrap'> |
71 | <h2 id="preview-post"><?php _e('Post Preview (updated when post is saved)'); ?></h2> |
72 | <iframe src="<?php echo attribute_escape(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" width="100%" height="600" ></iframe> |
73 | </div> |
74 | <?php |
75 | break; |
76 |
|
77 | case 'editattachment': |
78 | $post_id = (int) $_POST['post_ID']; |
79 |
|
80 | check_admin_referer('update-attachment_' . $post_id); |
81 |
|