WordPress Version: 6.1
/**
* Retrieves all of the WordPress support page statuses.
*
* Pages have a limited set of valid status values, this provides the
* post_status values and descriptions.
*
* @since 2.5.0
*
* @return string[] Array of page status labels keyed by their status.
*/
function get_page_statuses()
{
$status = array('draft' => __('Draft'), 'private' => __('Private'), 'publish' => __('Published'));
return $status;
}