Filters the HTML string of post states.
Parameters
$post_states_htmlstring- 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>. - string> $post_states A mapping of post state slugs to translated post state labels.
E.g.array( 'draft' => __( 'Draft' ), 'sticky' => __( 'Sticky' ), ... ). $postWP_Post- The current post object.
Source
$post_states_html = apply_filters( 'post_states_html', $post_states_html, $post_states, $post );
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.