jetpack_photon_admin_allow_image_downsize, false, compact( image, attachment_id, size

jetpack_photon_admin_allow_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_admin_allow_image_downsize, false, compact( image, attachment_id, size') is found 1 times:

  • /jetpack_vendor/automattic/jetpack-image-cdn/src/class-image-cdn.php line 785
    			 *   @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.
    			 * }
    			 */
    			false === apply_filters( 'jetpack_photon_admin_allow_image_downsize', false, compact( 'image', 'attachment_id', 'size' ) )
    		) {
    			return $image;
    		}
    
    		/**
    		 * Provide plugins a way of preventing Photon from being applied to images retrieved from WordPress Core.