get_media_states


get_media_states ( $post )

Parameters:
  • (WP_Post) post The attachment to retrieve states for.
Returns:
  • (string[]) Array of media state labels keyed by their state.
Defined at:

Description

Retrieves an array of media states from an attachment.

Related Functions

_media_states, get_media_items, get_media_item, get_page_statuses, get_comment_statuses

Top Google Results

User discussions

wpseek mobile