Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created July 13, 2018 17:24
Show Gist options
  • Save KaineLabs/5950200d0dff734ab594eddfc52bfc33 to your computer and use it in GitHub Desktop.
Save KaineLabs/5950200d0dff734ab594eddfc52bfc33 to your computer and use it in GitHub Desktop.
How to disable images compression ?
<?php
/**
* Disable Images Compression
*/
function yzc_enable_attachments_compression( $enable ) {
return false;
}
add_filter('yz_enable_attachments_compression', 'yzc_enable_attachments_compression' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment