On this page
apply_filters( 'display_media_states', string[] $media_states, WP_Post $post )
Filters the default media display states for items in the Media list table.
Parameters
$media_statesstring[]-
An array of media states. Default 'Header Image', 'Background Image', 'Site Icon',
'Logo'. $postWP_Post-
The current attachment object.
Source
File: wp-admin/includes/template.php. View all references
return apply_filters( 'display_media_states', $media_states, $post );
Related
Used By
| Used By | Description |
|---|---|
| get_media_states() wp-admin/includes/template.php | Retrieves an array of media states from an attachment. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/display_media_states