Created
May 8, 2018 19:23
-
-
Save gareth-gillman/27489c10004f409fddae0f27feefdc2c to your computer and use it in GitHub Desktop.
functions.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function set_compression( $compression ) { | |
return 100; | |
} | |
add_filter( 'jpeg_quality', 'set_compression', 999 ); | |
add_filter( 'wp_editor_set_quality', 'set_compression', 999 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment