wp_get_attachment_id3_keys WordPress Filter Hook

The wp_get_attachment_id3_keys WordPress hook is used to filter the list of available ID3 keys for an attachment. This hook is used by the wp_get_attachment_id3 function to retrieve information about an attachment.

apply_filters( 'wp_get_attachment_id3_keys', array $fields, WP_Post $attachment, string $context ) #

Filters the editable list of keys to look up data from an attachment’s metadata.


Parameters

$fields

(array)Key/value pairs of field keys to labels.

$attachment

(WP_Post)Attachment object.

$context

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


Top ↑

Source

File: wp-includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More