Last active
September 24, 2019 10:29
-
-
Save nielslange/3bf78b818b8b49bc9f893b593334d816 to your computer and use it in GitHub Desktop.
Overwrite default image sizes.
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
<?php | |
// Overwrite default image sizes. | |
add_action('init', 'smntcs_remove_image_sizes'); | |
function smntcs_remove_image_sizes() { | |
add_image_size( 'course_archive_thumbnail', 0 ); | |
add_image_size( 'course_single_thumbnail', 0 ); | |
add_image_size( 'lesson_archive_thumbnail', 0 ); | |
add_image_size( 'lesson_single_thumbnail', 0 ); | |
add_image_size( 'portfolio_horizontal', 0 ); | |
add_image_size( 'portfolio_slider', 0 ); | |
add_image_size( 'portfolio_vertical', 0 ); | |
add_image_size( 'shop_catalog', 0 ); | |
add_image_size( 'shop_thumbnail', 0 ); | |
add_image_size( 'woocommerce_gallery_thumbnail', 0 ); | |
add_image_size( 'woocommerce_single', 0 ); | |
add_image_size( 'woocommerce_thumbnail', 0 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment