Source file: class.photon.php
View in GitHubParameters
- false
-
(bool) false Stop Photon from being run on the Dashboard. Default to false.
- $args
-
(array) { Array of image details. @type $image 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 array of width and height. }
Changelog
Since: Jetpack 4.8.0
Notes
This will allow Photon’s image_downsize
callback to run when viewing the dashboard (wp-admin
). For environments where all intermediate images are dynamically generated, this can come in handy as we can re-use the same image resizing logic on both front-end and dashboard.
You can use the filter like so:
add_filter( 'jetpack_photon_admin_allow_image_downsize', '__return_true' );