public function status( $args, $assoc_args ) {
		list( $comment_id ) = $args;

		$status = wp_get_comment_status( $comment_id );

		if ( false === $status ) {
			WP_CLI::error( "Could not check status of comment {$comment_id}." );
		} else {
			WP_CLI::line( $status );
		}
	}
public function status( $args, $assoc_args ) {
		list( $comment_id ) = $args;

		$status = wp_get_comment_status( $comment_id );

		if ( false === $status ) {
			WP_CLI::error( "Could not check status of comment {$comment_id}." );
		} else {
			WP_CLI::line( $status );
		}
	}
public function status ( $ args , $ assoc_args ) { list ( $ comment_id ) = $ args ; $ status = wp_get_comment_status ( $ comment_id ) ; if ( false === $ status ) { WP_CLI :: error ( "Could not check status of comment {$comment_id}." ) ; } else { WP_CLI :: line ( $ status ) ; } }
Gets the status of a comment.

## OPTIONS

<id>
: The ID of the comment to check.

## EXAMPLES

# Get status of comment.
$ wp comment status 1337
approved
Gets the status of a comment .