WordPress at Your Fingertips
filter is not described

attachment_thumbnail_args filter-hook . WP 3.9.0

Filters the parameters for the attachment thumbnail creation.


add_filter( 'attachment_thumbnail_args', 'filter_function_name_3764', 10, 3 );
function filter_function_name_3764( $image_attachment, $metadata, $uploaded ){
	// filter...

	return $image_attachment;
An array of parameters to create the thumbnail.
Current attachment metadata.

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.


Since 3.9.0 Introduced.

Where the hook is called

wp-admin/includes/image.php 556
$image_attachment = apply_filters( 'attachment_thumbnail_args', $image_attachment, $metadata, $uploaded );

Where in WP core the hook is used WordPress

Usage not found.