WordPress at a glance

get_post_statuses() WP 1.0

Retrieve all of the WordPress supported post statuses.

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

No Hooks.


Array. List of post statuses.



Code of get post statuses: wp-includes/post.php WP 5.2.2

function get_post_statuses() {
	$status = array(
		'draft'   => __( 'Draft' ),
		'pending' => __( 'Pending Review' ),
		'private' => __( 'Private' ),
		'publish' => __( 'Published' ),

	return $status;

Related Functions

From tag: statuses (of post comment user)

More from category: Other

No comments
    Hello, !     Log In . Register