wp_get_comment_status


wp_get_comment_status ( $comment_id )

Parameters:
  • (int|WP_Comment) $comment_id Comment ID or WP_Comment object
Returns:
  • (false|string) Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
Defined at:

Description

The status of a comment by ID.

Related Functions

wp_set_comment_status, get_comment_statuses, wp_transition_comment_status, get_default_comment_status, get_comment_text

Top Google Results

User discussions

wpseek mobile