函数原型
get_comment_statuses(): string[]
函数描述
Retrieves all of the WordPress supported comment statuses.
是否弃用
未弃用
函数参数
无
函数返回值
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. |

