post_comment_status_meta_box

Definition:
function post_comment_status_meta_box($post) {}

Display comments status form fields.

Parameters

  • object $post

Defined actions

  • post_comment_status_meta_box-options
    do_action('post_comment_status_meta_box-options', $post);

Source code

function post_comment_status_meta_box($post) {

?>

<input name="advanced_view" type="hidden" value="1" />

<p class="meta-options">

	<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 />

	<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>

	<?php do_action('post_comment_status_meta_box-options', $post); ?>

</p>

<?php

}

2563

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: