wpseek.com
A WordPress-centric search engine for devs and theme authors



display_post_states › WordPress Filter Hooks

Since5.5.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

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