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



post_states_html › WordPress Filter Hooks

Seit6.9.0
Veraltetn/v
apply_filters( 'post_states_html', $post_states_html, $post_states, $post )
Parameter: (3)
  • (string) $post_states_html All relevant post states combined into an HTML string for display. E.g. `— <span class='post-state'>Draft, </span><span class='post-state'>Sticky</span>`.
    Erforderlich: Ja
  • (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 HTML string of post states.





Quellcode

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