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_1464', 10, 2 );
function filter_function_name_1464( $media_states, $post ){
	// filter...

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

Список изменений

С версии 3.2.0 Введена.
С версии 4.8.0 Added the $post parameter.

Где вызывается хук

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

Где используется хук в ядре WP

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