-
-
Save fovoc/60cd64ffd31fce919563b67096f5162c to your computer and use it in GitHub Desktop.
Skip a Original size image from Smushing
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
add_filter('wp_smush_media_image', 'smush_skip_original_image', '', 2 ); | |
function smush_skip_original_image( $skip, $image_size ) { | |
if( 'full' == $image_size ) { | |
return false; | |
} | |
return $skip; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment