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: - Introduced in WordPress: 5.6.0
- Deprecated in WordPress: —
Description
Retrieves an array of media states from an attachment.