wp_generate_attachment_metadata


wp_generate_attachment_metadata ( $attachment_id, $file )

Parameters:
  • (int) attachment_id Attachment ID to process.
  • (string) file Filepath of the attached image.
Returns:
  • (array) Metadata for attachment.
Defined at:
Change Log:
  • 6: .
  • 6: .

Description

Generates attachment meta data and create image sub-sizes for images.

Related Functions

wp_get_attachment_metadata, wp_maybe_generate_attachment_metadata, wp_update_attachment_metadata, wp_get_attachment_image, wp_delete_attachment

Top Google Results

User discussions

wpseek mobile