Home/Hooks/attachment_thumbnail_args
FILTER

attachment_thumbnail_args

Filters the parameters for the attachment thumbnail creation. Information about the newly-uploaded file. }

wp-admin/includes/image.php
Line 660
3 Parameters
View Source

Usage

add_filter( 'attachment_thumbnail_args', 'your_callback_function', 10, 3 );

Filter Callback:

function your_callback_function( $image_attachment, $metadata, $uploaded ) {
    // Your code here
    return $image_attachment;
}

Parameters

$image_attachment

Parameter 1

$metadata

Parameter 2

$uploaded

Parameter 3

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.