Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/template.php | apply_filters | 2404 | /** * 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. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string[] | $media_states | An array of media states. Default 'Header Image', |
WP_Post | $post | The current attachment object. |