Guest User

Untitled

a guest
Feb 21st, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. /* ----------------------------------------------------------------------------
  3. * Remove default image sizes
  4. * ------------------------------------------------------------------------- */
  5.  
  6. //Remove default image sizes
  7. add_action('init', 'remove_plugin_image_sizes');
  8. function remove_plugin_image_sizes() {
  9. remove_image_size('shop_thumbnail');
  10. remove_image_size('shop_catalog');
  11. remove_image_size('shop_single');
  12. remove_image_size('woocommerce_thumbnail');
  13. remove_image_size('woocommerce_thumbnail_2x');
  14. remove_image_size('woocommerce_single');
  15. }
Add Comment
Please, Sign In to add comment