Provide plugins a way of running Photon for images in the WordPress Dashboard (wp-admin). Note: enabling this will result in Photon URLs added to your post content, which could make migrations across domains (and off Photon) a bit more challenging.
Parameters
- $args
array { Array of image details.
- false
bool Stop Photon from being run on the Dashboard. Default to false.
Changelog
- Introduced in Jetpack 4.8.0
How to use this hook
Notes
This will allow Photon’simage_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' );