Created
          March 24, 2025 13:37 
        
      - 
      
 - 
        
Save nathaningram/7d15fb5b1fc8f63f15a19be81f96097b to your computer and use it in GitHub Desktop.  
    Smart Image Resize (SIR) - exclude image sizes from being altered
  
        
  
    
      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
    
  
  
    
  | // Exclude Image Sizes from SIR Plugin | |
| // List all sizes to be excluded in the list below | |
| add_filter('wp_sir_exclude_sizes', function() { | |
| return [ | |
| 'woocommerce_gallery_thumbnail', | |
| 'thumbnail', | |
| 'medium', | |
| 'medium_large', | |
| 'large', | |
| 'news_grid', | |
| 'news_large' | |
| ]; | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment