wp_get_attachment_metadata


wp_get_attachment_metadata ( $attachment_id = 0, $unfiltered = false )

Parameters:
  • (int) $attachment_id Attachment post ID. Defaults to global $post.
  • (bool) $unfiltered Optional. If true, filters are not run. Default false.
Returns:
  • (mixed) Attachment meta field. False on failure.
Defined at:

Description

Retrieve attachment meta field for attachment ID.

Related Functions

wp_generate_attachment_metadata, wp_update_attachment_metadata, wp_maybe_generate_attachment_metadata, wp_get_attachment_image, wp_get_attachment_caption

Top Google Results

User discussions

wpseek mobile