apply_filters ( 'jetpack_photon_post_image_args', array $args, array $details )

Filter the array of Photon arguments added to an image when it goes through Photon.<p>By default, only includes width and height values.</p>

Source file: class.photon.php

View in GitHub

Parameters

$args

(array) Array of Photon Arguments.

$details

(array) { Array of image details. @type string $tag Image tag (Image HTML output). @type string $src Image URL. @type string $src_orig Original Image URL. @type int|false $width Image width. @type int|false $height Image height. @type int|false $width_orig Original image width before constrained by content_width. @type int|false $height_orig Original Image height before constrained by content_width. @type string $transform Transform. @type string $transform_orig Original transform before constrained by content_width. }


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