WordPress at a glance
filter is not described

display_post_states filter-hook . WP 2.8.0

Filters the default post display states used in the posts list table.

Usage

add_filter( 'display_post_states', 'filter_function_name_5035', 10, 2 );
function filter_function_name_5035( $post_states, $post ){
	// filter...

	return $post_states;
}
$post_states(array)
An array of post display states.
$post(WP_Post)
The current post object.

Notes

  • Since 3.6.0 Added the $post parameter.

Where the hook is called

_post_states()
display_post_states
wp-admin/includes/template.php 1933
$post_states = apply_filters( 'display_post_states', $post_states, $post );

Where the hook is used (in WP core)

Does not used.