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.

Return

Array. List of post statuses.

Usage

get_post_statuses();

Code of get_post_statuses: wp-includes/post.php VER 5.0

<?php
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