wp_get_attachment_metadata WordPress Filter Hook

The wp_get_attachment_metadata hook is used to retrieve attachment metadata from the database. This hook is used by the WordPress media library to display information about an attachment.

apply_filters( 'wp_get_attachment_metadata', array $data, int $attachment_id ) #

Filters the attachment meta data.


Parameters

$data

(array)Array of meta data for the given attachment.

$attachment_id

(int)Attachment post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.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