Created
September 14, 2016 11:43
-
-
Save UmeshSingla/35e2c25b72580f9d0c9e74818c7672d1 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