WPDev.one
Core Function
View Source on Trac ↗

get_media_states()

get_media_states( mixed $post )

Retrieves an array of media states from an attachment.

Parameters 1 required

Name / Type Description
$post
WP_Post

The attachment to retrieve states for.

Required

Return Value

(string[])
Array of media state labels keyed by their state.

Function Information

Since Version
5.6.0
Source File
wp-admin/includes/template.php
Advertisement