Filter: classifai_smart_cropping_source_url

apply_filters( 'classifai_smart_cropping_source_url', url, $attachment_id ) → {null|string}

Filters the image URL to send to Computer Vision for smart cropping. A non-null value will override default plugin behavior.

Parameters:
Name Type Description
url null | string

null to use default plugin behavior; string to override.

$attachment_id int

The attachment image ID.

Since:
  • 1.5.0
Source:
Returns:

URL to be sent to Computer Vision for smart cropping.

Type
null | string