wpseek.com
A WordPress-centric search engine for devs and theme authors



post_states_html › WordPress Filter Hooks

Since6.9.0
Deprecatedn/a
apply_filters( 'post_states_html', $post_states_html, $post_states, $post )
Parameters: (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>`.
    Required: Yes
  • (string<string,) string> $post_states A mapping of post state slugs to translated post state labels. E.g. `array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... )`.
    Required: Yes
  • (WP_Post) $post The current post object.
    Required: Yes
Defined at:
Codex:

Filters the HTML string of post states.





Source

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