apply_filters( 'classifai_ocr_text_post_args', $post_args, $attachment_id, $result ) → {string}
Filter the post arguments before saving the text to post_content.
This enables text to be stored in a different post or post meta field, or do other post data setting based on scan results.
Parameters:
Name | Type | Description |
---|---|---|
$post_args |
string | Array of post data for the attachment post update. Defaults to |
$attachment_id |
int | ID of the attachment post. |
$result |
object | The full scan results from the API. |
- Since:
- 1.6.0
- Source:
Returns:
The filtered text data.
- Type
- string