Filter: classifai_should_ocr_scan_image

apply_filters( 'classifai_should_ocr_scan_image', $should_scan, $image_url, $attachment_id ) → {bool}

Filters whether to run OCR scanning on the current image.

Parameters:
Name Type Description
$should_scan bool

Whether to run OCR scanning. Defaults to feature being enabled.

$image_url string

URL of image to process.

$attachment_id int

The attachment ID.

Since:
  • 1.6.0
Source:
Returns:

Whether to run OCR scanning.

Type
bool