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:
  • (mixed) Metadata for attachment.
Defined at:

Description

Generate post thumbnail attachment meta data.

Related Functions

wp_maybe_generate_attachment_metadata, wp_get_attachment_metadata, wp_update_attachment_metadata, wp_get_attachment_image, wp_insert_attachment

Top Google Results

User discussions

wpseek mobile