Filter: classifai_ocr_text_post_args

apply_filters( 'classifai_ocr_text_post_args', string, int, object, string, object )

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
string

$post_args Array of post data for the attachment post update. Defaults to ID and post_content.

int

$attachment_id ID of the attachment post.

object

$scan The full scan results from the API.

string

$text The text data to be saved.

object

$scan The full scan results from the API.

Since:
  • 1.6.0
Source:
Returns:

string The filtered text data.