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



post_states_html › Filtr WordPress Hooks

Od6.9.0
Przestarzałyn/a
› apply_filters( 'post_states_html', $post_states_html, $post_states, $post )
Parametry: (3)
  • () post_states_html All relevant post states combined into an HTML string for display. E.g. `&mdash; <span class='post-state'>Draft, </span><span class='post-state'>Sticky</span>`.
    Wymagane: Tak
  • () 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 HTML string of post states.





Źródło

$post_states_html = apply_filters( 'post_states_html', $post_states_html, $post_states, $post );