Filter hook 'display_media_states'
in WP Core File wp-admin/includes/template.php at line 2469
Description
Filters the default media display states for items in the Media list table.
Occurrences
Filename |
Line Number |
wp-admin/includes/template.php |
2469 |
Parameters
Type |
Name |
Description |
string[] |
$media_states |
An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'. |
WP_Post |
$post |
The current attachment object. |
PHP Doc
/**
* Filters the default media display states for items in the Media list table.
*
* @since 3.2.0
* @since 4.8.0 Added the `$post` parameter.
*
* @param string[] $media_states An array of media states. Default 'Header Image',
* 'Background Image', 'Site Icon', 'Logo'.
* @param WP_Post $post The current attachment object.
*/