wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



display_post_states › Les Filtres WordPress

Depuis5.5.0
Dépréciéen/a
› apply_filters( 'display_post_states', $post_states, $post )
Paramètres: (2)
  • () post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    Requis: Oui
  • () post The current post object.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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