Supprimer les tailles d'images media créées par WooCommerce sur les produits
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
/** | |
* 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