_post_states
_post_states ( $post, $echo = true )
Parameters:- (WP_Post) post The post to retrieve states for.
- (bool) echo Optional. Whether to echo the post states as an HTML string. Default true.
See:Returns:- (string) Post states string.
Defined at:Change Log: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Function to echo or return the post states as HTML.