apply_filters( 'attachment_thumbnail_args', array $image_attachment, array $metadata, array $uploaded )

Filters the parameters for the attachment thumbnail creation.


Parameters

$image_attachment

An array of parameters to create the thumbnail.

$metadata

Current attachment metadata.

$uploaded

Information about the newly-uploaded file.<br>

  • 'file'
    (string) Filename of the newly-uploaded file.<br>
  • 'url'
    (string) URL of the uploaded file.<br>
  • 'type'
    (string) File type.<br>


Source

File: wp-admin/includes/image.php

View on GitHub



Changelog

Changelog
Version Description
3.9.0 Introduced.