wp_get_comment_status
wp_get_comment_status ( $comment_id )
Parameters:- (int|WP_Comment) comment_id Comment ID or WP_Comment object
Returns:- (string|false) Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Retrieves the status of a comment by comment ID.