Action: classifai_smart_cropping_unsuccessful_response
Fires when the generateThumbnail smart-cropping API response did not have a 200 status code.
Parameters
Name | Type | Description |
---|---|---|
$response | `array | \WP_Error` |
$url | string | The request URL with query args added. |
$data | array | Array containing the image height and width. |
Since
- 1.5.0
Source
Defined in includes/Classifai/Providers/Azure/SmartCropping.php
at line 290