apply_filters( 'display_media_states', array $media_states, WP_Post $post )

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


Parameters

$media_states

(array) An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'.

$post

(WP_Post) The current attachment object.


Source

File: wp-admin/includes/template.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.8.0 Added the $post parameter.
WP-3.2.0 Introduced.