wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



display_post_states › Filtr WordPress Hooks

Od5.5.0
Przestarzałyn/a
› apply_filters( 'display_post_states', $post_states, $post )
Parametry: (2)
  • () post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    Wymagane: Tak
  • () post The current post object.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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