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<string,) string> $post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    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 );