Forked from douglasanro/remove-default-image-sizes.php
Last active
February 8, 2018 23:38
-
-
Save matthijs166/0d00bef5c9f009a8bde3ccb3fe468878 to your computer and use it in GitHub Desktop.
Remove default WordPress image sizes
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 | |
/* ---------------------------------------------------------------------------- | |
* Remove default image sizes | |
* ------------------------------------------------------------------------- */ | |
//Remove default image sizes | |
add_action('init', 'remove_plugin_image_sizes'); | |
function remove_plugin_image_sizes() { | |
remove_image_size('shop_thumbnail'); | |
remove_image_size('shop_catalog'); | |
remove_image_size('shop_single'); | |
remove_image_size('woocommerce_thumbnail'); | |
remove_image_size('woocommerce_thumbnail_2x'); | |
remove_image_size('woocommerce_single'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment