WPDev.one
Core Function
View Source on Trac ↗

_media_states()

_media_states( mixed $post, mixed $display = true )

Outputs the attachment media states as HTML.

Parameters 2 required

Name / Type Description
$post
WP_Post

The attachment post to retrieve states for.

Required
bool

$display Optional. Whether to display the post states as an HTML string. Default true.

Required

Return Value

(string)
Media states string.

Function Information

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