Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.