Created
January 20, 2023 16:34
-
-
Save nosilver4u/a265246c9f2b409c30ee20600255ab0b to your computer and use it in GitHub Desktop.
Force EWWW IO to obey maximum image dimensions regardless of file size.
This file contains 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 | |
/* | |
Plugin Name: EWWW IO Force Resize | |
Description: Skips the file size check after resizing the full-size image. | |
Version: 1.0.0 | |
*/ | |
add_filter( 'ewww_image_optimizer_resize_filesize_ignore', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment