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:

Description

Retrieves the status of a comment by comment 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