Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: dbx_post_advanced

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
318      meta_form();
319 ?>
320 <div id="ajax-response"></div>
321 </div>
322 <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>
323 <?php
324 }
325 add_meta_box('postcustom', __('Custom Fields'), 'post_custom_meta_box', 'post', 'advanced', 'core');
326
327 do_action('dbx_post_advanced');
328
329 function post_comment_status_meta_box($post) {
330 ?>
331 <input name="advanced_view" type="hidden" value="1" />
332 <p><label for="comment_status" class="selectit">
333 <input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> />
334 <?php _e('Allow Comments') ?></label></p>
335 <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>
336 <p><?php _e('These settings apply to this post only. &#8220;Pings&#8221; are <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">trackbacks and pingbacks</a>.'); ?></p>