Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




post_comment_status_meta_box [ WordPress Function ]

post_comment_status_meta_box ( $post )
Parameters:
  • (object) $post
Defined at:



Display comments status form fields.

Source


<?php
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
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics