jetpack photon modification
-
I have jetpack’s photon module activated on my site, and I want to compress all images to 80% by using the code below.
add_filter(‘jetpack_photon_pre_args’, ‘jetpackme_custom_photon_compression’ );
function jetpackme_custom_photon_compression( $args ) {
$args[‘quality’] = 80;
$args[‘strip’] = ‘all’;
return $args;
}But the thing is, I do not how to add this code into snippet? If I just simply copy/paste this code, and then save it, my images will be compress? For instance do I neede a function name maybe as a file name? Long story short how I can know that my code is running? And if it is not running, how I can make it run?
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘jetpack photon modification’ is closed to new replies.