On this page
apply_filters( 'attachment_thumbnail_args', array $image_attachment, array $metadata, array $uploaded )
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.
filestringFilename of the newly-uploaded file.urlstringURL of the uploaded file.typestringFile type.
Source
File: wp-admin/includes/image.php. View all references
$image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded );
Related
Used By
| Used By | Description |
|---|---|
| wp_generate_attachment_metadata() wp-admin/includes/image.php | Generates attachment meta data and create image sub-sizes for images. |
Changelog
| Version | Description |
|---|---|
| 3.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/attachment_thumbnail_args