jetpack_photon_override_image_downsize, false, compact( image, attachment_id, size

jetpack_photon_override_image_downsize, false, compact( image, attachment_id, size

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.16.0.1

apply_filters('jetpack_photon_override_image_downsize, false, compact( image, attachment_id, size') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn.php line 806
    		 *   @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 array of width and height.
    		 * }
    		 */
    		if ( apply_filters( 'jetpack_photon_override_image_downsize', false, compact( 'image', 'attachment_id', 'size' ) ) ) {
    			return $image;
    		}
    
    		// Get the image URL and proceed with Photon-ification if successful.
    		$image_url = wp_get_attachment_url( $attachment_id );