Skip to main content

Filter: classifai_generate_image_alt_tags_source_url

Filter to modify image source URL in order to allow scanning images, stored on third party storages that cannot be used by helper function get_largest_acceptable_image_url() to determine filesize() locally.

Default is null, return filtered string to allow classifying image on external source.

Parameters

NameTypeDescription
$image_urlmixedNew image path for given attachment ID.
$post_idintThe ID of the attachment to be used in classification.

Since

  • 1.6.0

Source

Defined in includes/Classifai/Helpers.php at line 283

Returns

NULL or filtered URl for given attachment id.

Ready to Get Started?

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