wppaste
WordPress

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

Since
2.1.0
Filters the attachment meta data.

Parameters

$dataarray
Array of meta data for the given attachment.
$attachment_idint
Attachment post ID.

Fired at · 1

  • wp-includes/post.php:6782wp_get_attachment_metadata()

Source

	 *	 * @since 2.1.0	 *	 * @param array $data          Array of meta data for the given attachment.	 * @param int   $attachment_id Attachment post ID.	 */	return apply_filters( 'wp_get_attachment_metadata', $data, $attachment_id );} /** * Updates metadata for an attachment. * * @since 2.1.0

History

Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.