get_available_post_statuses
get_available_post_statuses ( $type = 'post' )
Parameters:- (string) type The post_type you want the statuses for. Default 'post'.
Returns:- (string[]) An array of all the statuses for the supplied post type.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Returns all the possible statuses for a post type.