A WordPress-centric search engine for devs and theme authors



display_post_states ›

Since3.6.0
Deprecatedn/a
apply_filters( 'display_post_states', $post_states, $post )
Parameters: (2)
  • (string[]) $post_states An array of post display states.
    Required: Yes
  • (WP_Post) $post The current post object.
    Required: Yes
Defined at:
Codex:

Filters the default post display states used in the posts list table.





Source

$post_states = apply_filters( 'display_post_states', $post_states, $post );