get_comment_statuses()
Retrieve all of the ClassicPress supported comment statuses.
Description
Comments have a limited set of valid status values, this provides the comment status values and descriptions.
Return
(array) List of comment statuses.
Source
File: wp-includes/comment.php
function get_comment_statuses() {
$status = array(
'hold' => __( 'Unapproved' ),
'approve' => _x( 'Approved', 'comment status' ),
'spam' => _x( 'Spam', 'comment status' ),
'trash' => _x( 'Trash', 'comment status' ),
);
return $status;
}
Changelog
Version | Description |
---|---|
WP-2.7.0 | Introduced. |