Definition:
function get_post_statuses( ) {}
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.
Return values
returns:List of post statuses.
Source code
function get_post_statuses( ) {
$status = array(
'draft' => __('Draft'),
'pending' => __('Pending Review'),
'private' => __('Private'),
'publish' => __('Published')
);
return $status;
}
1611

February 12, 2011 


No comments yet... Be the first to leave a reply!