WPDev.one
Core Function
View Source on Trac ↗

get_available_post_statuses()

get_available_post_statuses( mixed $type = 'post' )

Returns all the possible statuses for a post type.

Parameters 0 required

Name / Type Description
$type
string

The post_type you want the statuses for. Default 'post'.

Return Value

(string[])
An array of all the statuses for the supplied post type.

Function Information

Since Version
2.5.0
Source File
wp-admin/includes/post.php
Advertisement