Codex tools: Log in
Contents |
The status of a comment by ID.
<?php wp_get_comment_status( $comment_id ) ?>
<?php
$status = wp_get_comment_status( $comment_id );
if ( $status == "approved" ) {
// show the comment
}
?>
Since: 1.0.0
wp_get_comment_status() is located in wp-includes/comment.php.