A WordPress-centric search engine for devs and theme authors



get_comment_statuses ›

Since2.7.0
Deprecatedn/a
get_comment_statuses ( No parameters )
Returns:
  • (array) List of comment statuses.
Defined at:
Codex:

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.



Source

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