WordPress at a glance
filter is not described

display_media_states filter-hook . WP 3.2.0

Filters the default media display states for items in the Media list table.


add_filter( 'display_media_states', 'filter_function_name_4894', 10, 2 );
function filter_function_name_4894( $media_states, $post ){
	// filter...

	return $media_states;
An array of media states.
Default: 'Header Image', 'Background Image', 'Site Icon', 'Logo'
The current attachment object.


Since 3.2.0 Introduced.
Since 4.8.0 Added the $post parameter.

Where the hook is called

wp-admin/includes/template.php 2238
$media_states = apply_filters( 'display_media_states', $media_states, $post );

Where the hook is used (in WP core)

wp-includes/widgets/class-wp-widget-media.php 119
add_filter( 'display_media_states', array( $this, 'display_media_state' ), 10, 2 );