Filter: classifai_generate_image_alt_tags_source_url

apply_filters( 'classifai_generate_image_alt_tags_source_url', $image_url, $post_id ) → {mixed}

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:
Name Type Description
$image_url mixed

New image path for given attachment ID.

$post_id int

The ID of the attachment to be used in classification.

Since:
  • 1.6.0
Source:
Returns:

NULL or filtered URl for given attachment id.

Type
mixed