Skip to main content

Filter: classifai_smart_cropping_thumb_file_name

Filters the file name of the smart-cropped image.

By default, the filename mirrors what is generated by core -- e.g., my-thumb-150x150.jpg -- so will override the core-generated image. Apply this filter to keep the original file in the file system.

Parameters

NameTypeDescription
$stringDefault file name.
$intThe ID of the attachment being processed.
$arrayWidth and height data for the image.

Since

  • 1.5.0

Source

Defined in includes/Classifai/Features/ImageCropping.php at line 238

Returns

Filtered file name.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.