Uses
| Uses | Description |
|---|---|
| wp-includes/l10n.php: __() | Retrieve the translation of $text. |
| wp-includes/l10n.php: _x() | Retrieve translated string with gettext context. |
Retrieve all of the WordPress supported comment statuses.
Comments have a limited set of valid status values, this provides the comment status values and descriptions.
(string[]) List of comment status labels keyed by status.
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;
} | Version | Description |
|---|---|
| 2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_comment_statuses