apply_filters( 'classifai_should_smart_crop_image', $should_smart_crop, $metadata, $attachment_id ) → {bool}
Filters whether to apply smart cropping to the current image.
Parameters:
Name | Type | Description |
---|---|---|
$should_smart_crop |
bool | Whether to apply smart cropping. The default value is set in ComputerVision settings. |
$metadata |
array | Image metadata. |
$attachment_id |
int | The attachment ID. |
- Since:
- 1.5.0
- Source:
Returns:
Whether to apply smart cropping.
- Type
- bool