Created
July 16, 2015 09:07
-
-
Save wpweb101/04a4b1d1321a8868224b to your computer and use it in GitHub Desktop.
Edd Download Image Watermark - PNG image quality
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
| <?php | |
| /** | |
| * Function to handle the download image png quality | |
| * Note : Value should be numeric and bettween 0 to 9 | |
| * | |
| * @param int $quality | |
| * @return $quality | |
| */ | |
| function edd_img_wtm_png_quality( $quality ) { | |
| $quality = 6; | |
| return $quality; | |
| } | |
| add_filter( 'edd_img_wtm_png_quality', 'edd_img_wtm_png_quality' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment