display_media_states

Advertisement

Summery Summery

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

Syntax Syntax

apply_filters( 'display_media_states', string[] $media_states, WP_Post $post )

Parameters Parameters

$media_states

(string[]) An array of media states. Default 'Header Image', 'Background Image', 'Site Icon', 'Logo'.

$post

(WP_Post) The current attachment object.

Source Source

File: wp-admin/includes/template.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.