get_page_statuses()

Retrieve all of the WordPress support page statuses.


Description Description

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


Return Return

(array) List of page statuses.


Top ↑

Source Source

File: wp-includes/post.php

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

	return $status;
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.