apply_filters ( 'photon_validate_image_url', bool true, string $url, array $parsed_url )

Overwrite the results of the validation steps an image goes through before to be considered valid to be used by Photon.

Source file: class.photon.php

View in GitHub

Parameters

true

(bool) true Is the image URL valid and can it be used by Photon. Default to true.

$url

(string) Image URL.

$parsed_url

(array) Array of information about the image.


Changelog

Since: Jetpack 3.0.0


Have a question about this article?

Comments are currently closed for this article, but rest assured we're still here to help! Send us a message and we'll get back to you.

Contact us