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_attachmentParameter 1
$metadataParameter 2
$uploadedParameter 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.