Filters the default post display states used in the posts list table.
Parameters
- 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
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.