Core Function
View Source on Trac ↗ wp_get_comment_status()
wp_get_comment_status( mixed $comment_id ) Retrieves the status of a comment by comment ID.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Comment) $comment_id Comment ID or WP_Comment object Required |
Return Value
((string)
| false) Status might be 'trash', 'approved', 'unapproved', 'spam'. False on failure.
Function Information
Since Version
1.0.0
Source File
wp-includes/comment.php
Advertisement