get_page_statuses()
Retrieve all of the WordPress support page statuses.
Description
Pages have a limited set of valid status values, this provides the post_status values and descriptions.
Return
(string[]) Array of page status labels keyed by their status.
Source
File: wp-includes/post.php
function get_page_statuses() {
$status = array(
'draft' => __( 'Draft' ),
'private' => __( 'Private' ),
'publish' => __( 'Published' ),
);
return $status;
} Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_page_statuses