Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post_comment_status_meta_box-options

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
519  *
520  * @param object $post
521  */
522 function post_comment_status_meta_box($post) {
523 ?>
524 <input name="advanced_view" type="hidden" value="1" />
525 <p class="meta-options">
526      <label for="comment_status" class="selectit"><input name="comment_status" type="checkbox" id="comment_status" value="open" <?php checked($post->comment_status, 'open'); ?> /> <?php _e( 'Allow comments.' ) ?></label><br />
527      <label for="ping_status" class="selectit"><input name="ping_status" type="checkbox" id="ping_status" value="open" <?php checked($post->ping_status, 'open'); ?> /> <?php printf( __( 'Allow <a href="%s" target="_blank">trackbacks and pingbacks</a> on this page.' ), __( 'http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments' ) ); ?></label>
528      <?php do_action('post_comment_status_meta_box-options', $post); ?>
529 </p>
530 <?php
531 }
532
533 /**
534  * Display comments for post table header
535  *
536  * @since 3.0.0
537  *