apply_filters( ‘post_states_html’, string $post_states_html, array<string, , WP_Post $post )

In this article

Filters the HTML string of post states.

Parameters

$post_states_htmlstring
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>.
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

VersionDescription
6.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.