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_states string[]
An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'.
$post WP_Post
The current attachment object.

Top ↑

Source

File: wp-admin/includes/template.php. View all references

return apply_filters( 'display_media_states', $media_states, $post );


Top ↑

Changelog

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

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.