get_page_statuses() – Retrieve all of the WordPress support page statuses.

You appear to be a bot. Output may be restricted

Description

Retrieve all of the WordPress support page statuses.

Pages have a limited set of valid status values, this provides the post_status values and descriptions.

Usage

$string[] = get_page_statuses();

Parameters

Returns

string[] Array of page status labels keyed by their status.

Source

File name: wordpress/wp-includes/post.php
Lines:

1 to 9 of 9
function get_page_statuses() {
  $status = array(
    'draft'   => __( 'Draft' ),
    'private' => __( 'Private' ),
    'publish' => __( 'Published' ),
  );

  return $status;
}
 

 View on GitHub View on Trac