get_post_states
get_post_states ( $post )
Parameters:- (WP_Post) post The post to retrieve states for.
Returns:- (string[]) Array of post state labels keyed by their state.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Retrieves an array of post states from a post.