Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/69bb38df689e6329e84dbd1e044a77a5 to your computer and use it in GitHub Desktop.
Save KaineLabs/69bb38df689e6329e84dbd1e044a77a5 to your computer and use it in GitHub Desktop.
Change Images Compression Quality
<?php
/**
* Change Images Compression Quality
*/
function yzc_attachments_compression_quality( $quality ) {
// By default the quality is : 80.
return 80;
}
add_filter( 'yz_attachments_compression_quality', 'yzc_attachments_compression_quality' );
@arize99
Copy link

arize99 commented Nov 4, 2018

So 80. Does that make it lighter, heavier or normal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment