wp_get_attachment_id3_keys

SummerySummery

Returns useful keys to use to lookup data from an attachment’s stored metadata.

Syntax

wp_get_attachment_id3_keys( WP_Post $attachment, string $context = 'display' )

ParametersParameters

$attachment

(WP_Post) (Required) The current attachment, provided for context.

$context

(string) (Optional) The context. Accepts 'edit', 'display'.

Default value: 'display'

ReturnReturn

(string[]) Key/value pairs of field keys to labels.

SourceSource

File: wp-includes/media.php


			

ChangelogChangelog

Changelog
Version Description
3.9.0 Introduced.
Scroll to Top