Skip to content

Instantly share code, notes, and snippets.

@psaikali
Last active April 2, 2017 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psaikali/8ad90d0c26eb888d00eafd4755cee380 to your computer and use it in GitHub Desktop.
Save psaikali/8ad90d0c26eb888d00eafd4755cee380 to your computer and use it in GitHub Desktop.
Supprimer les tailles d'images media créées par WooCommerce sur les produits
/**
* Remove WC image sizes, useless
*/
function msk_wc_remove_image_sizes() {
remove_image_size('shop_thumbnail');
remove_image_size('shop_catalog');
remove_image_size('shop_single');
}
add_action('init', 'msk_wc_remove_image_sizes', 90);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment