wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



display_post_states › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'display_post_states', $post_states, $post )
Parameter: (2)
  • (string<string,) string> $post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    Erforderlich: Ja
  • (WP_Post) $post The current post object.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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