_post_states


_post_states ( $post, $display = true )

Parameters:
  • (WP_Post) post The post to retrieve states for.
  • (bool) display Optional. Whether to display the post states as an HTML string. Default true.
See:
Returns:
  • (string) Post states string.
Defined at:
Change Log:
  • 5: .

Description

Echoes or returns the post states as HTML.

Related Functions

get_post_states, get_post_statuses, get_post_status, get_post_stati, post_exists

Top Google Results

User discussions

wpseek mobile