wpseek.com
A WordPress-centric search engine for devs and theme authors



display_media_states › WordPress Filter Hooks

Since4.8.0
Deprecatedn/a
apply_filters( 'display_media_states', $media_states, $post )
Parameters: (2)
  • (string[]) $media_states An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'.
    Required: Yes
  • (WP_Post) $post The current attachment object.
    Required: Yes
Defined at:
Codex:

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





Source

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