Filter: classifai_smart_cropping_thumb_file_name

apply_filters( 'classifai_smart_cropping_thumb_file_name', Default, The, Width ) → {string}

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:
Name Type Description
Default string

file name.

The int

ID of the attachment being processed.

Width array

and height data for the image.

Since:
  • 1.5.0
Source:
Returns:

Filtered file name.

Type
string