Filters the default post display states used in the posts list table.
Parameters
$post_statesstring[]- An array of post display states.
$postWP_Post- The current post object.
Source
return apply_filters( 'display_post_states', $post_states, $post );
Filters the default post display states used in the posts list table.
$post_statesstring[]$postWP_Postreturn apply_filters( 'display_post_states', $post_states, $post );
You must log in before being able to contribute a note or feedback.
This always shows the current post status in the labels. This is especially useful when adding many custom post states.
Second parameter ($post) is type WP_Post, not int.