Filter: classifai_ocr_should_process

apply_filters( 'classifai_ocr_should_process', $process, $attachment_id, $scan ) → {bool}

Filters whether to run OCR processing on this media item

Parameters:
Name Type Description
$process bool

Whether to run OCR processing or not.

$attachment_id int

The attachment ID.

$scan bool | object

Previously run scan.

Since:
  • 1.6.0
Source:
Returns:

Whether this attachment should have OCR processing.

Type
bool