Uses
| Uses | Description | 
|---|---|
| wp-includes/l10n.php: __() | Retrieve the translation of $text. | 
Retrieve all of the WordPress supported post statuses.
Posts have a limited set of valid status values, this provides the post_status values and descriptions.
(string[]) Array of post status labels keyed by their status.
$post_statuses = get_post_statuses();
output:
 
Array
(
    [draft] => Draft
    [pending] => Pending Review
    [private] => Private
    [publish] => Published
)
To get an array of all post statuses, including those created with register_post_type(), see get_post_stati.
File: wp-includes/post.php
function get_post_statuses() {
	$status = array(
		'draft'   => __( 'Draft' ),
		'pending' => __( 'Pending Review' ),
		'private' => __( 'Private' ),
		'publish' => __( 'Published' ),
	);
	return $status;
}  | Version | Description | 
|---|---|
| 2.5.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/functions/get_post_statuses