wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_comment_statuses › WordPress Function

Since2.7.0
已弃用n/a
get_comment_statuses ( 没有参数 )
返回:
  • (string[]) List of comment status labels keyed by status.
定义在:
文档:

Retrieves all of the WordPress supported comment statuses.

Comments have a limited set of valid status values, this provides the comment status values and descriptions.


源码

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;
}