apply_filters( 'classifai_ocr_text_post_args', $post_args, $attachment_id, $scan, $text ) → {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. |
$scan |
object | The full scan results from the API. |
$text |
string | The text data to be saved. |
- Since:
- 1.6.0
- Source:
Returns:
The filtered text data.
- Type
- string