Skip to main content

Filter: classifai_ocr_text_post_args

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

NameTypeDescription
$post_argsarrayArray of post data for the attachment post update. Defaults to ID and post_content.
$attachment_idintID of the attachment post.
$resultstringThe full scan results from the API.

Since

  • 1.6.0

Source

Defined in includes/Classifai/Features/ImageTextExtraction.php at line 232

Returns

The filtered post arguments.

Ready to Get Started?

ClassifAI is a Free WordPress plugin that connects to your choice of AI platforms.