string $post_states, WP_Post $post )
Filters the default post display states used in the posts list table.
An array of post display states.
The current post object.
View all references
return apply_filters( 'display_post_states', $post_states, $post );
|5.5.0||Also applied in the Customizer context. If any admin functions are used within the filter, their existence should be checked with
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.
Hi, nice find! Would you like to open a core trac ticket and submit a patch to fix this discrepancy? — By Drew Jaynes —