Filters the default post display states used in the posts list table.
Parameters
$post_states
string[]- An array of post display states.
$post
WP_Post- The current post object.
Source
return apply_filters( 'display_post_states', $post_states, $post );
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.