A WordPress-centric search engine for devs and theme authors



get_page_statuses ›

Since2.5.0
Deprecatedn/a
get_page_statuses ( No parameters )
Returns:
  • (array) List of page statuses.
Defined at:
Codex:

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.



Source

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

	return $status;
}