Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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');
- }
Add Comment
Please, Sign In to add comment