apply_filters ( 'jetpack_photon_image_downsize_string', array $photon_args, array $args )

Filter the Photon Arguments added to an image when going through Photon, when that image size is a string.<p>Image size will be a string (e.g. "full", "medium") when it is known to WordPress.</p>

Source file: class.photon.php

View in GitHub

Parameters

$photon_args

(array) Array of Photon arguments.

$args

(array) { Array of image details. @type $image_args Array of Image arguments (width, height, crop). @type $image_url Image URL. @type $attachment_id Attachment ID of the image. @type $size Image size. Can be a string (name of the image size, e.g. full) or an integer. @type $transform Value can be resize or fit. @see https://developer.wordpress.com/docs/photon/api }


Changelog

Since: Jetpack 2.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