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'.
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |