WordPress at Your Fingertips
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_3571', 10, 2 );
function filter_function_name_3571( $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 2348
return apply_filters( 'display_media_states', $media_states, $post );

Where in WP core the hook is used WordPress

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