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 |
---|---|
287 | <?php |
288 | meta_form(); |
289 | ?> |
290 | <div id="ajax-response"></div> |
291 | </div> |
292 | <p><?php _e('Custom fields can be used to add extra metadata to a post that you can <a href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">use in your theme</a>.'); ?></p> |
293 | </div> |
294 | </div> |
295 |
|
296 | <?php do_action('dbx_post_advanced'); ?> |
297 |
|
298 | <div id="commentstatusdiv" class="postbox <?php echo postbox_classes('commentstatusdiv', 'post'); ?>"> |
299 | <h3><?php _e('Comments & Pings') ?></h3> |
300 | <div class="inside"> |
301 | <input name="advanced_view" type="hidden" value="1" /> |
302 | <p><label for="comment_status" class="selectit"> |
303 | <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> |
304 | <?php _e('Allow Comments') ?></label></p> |
305 | <p><label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php _e('Allow Pings') ?></label></p> |