apply_filters( ‘attachment_thumbnail_args’, array $image_attachment, array $metadata, array $uploaded )

In this article

Filters the parameters for the attachment thumbnail creation.

Parameters

$image_attachmentarray
An array of parameters to create the thumbnail.
$metadataarray
Current attachment metadata.
$uploadedarray
Information about the newly-uploaded file.
  • file string
    Filename of the newly-uploaded file.
  • url string
    URL of the uploaded file.
  • type string
    File type.

Source

$image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded );

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.