Skip to content

Instantly share code, notes, and snippets.

@nielslange nielslange/functions.php Secret

Last active Apr 6, 2019
Embed
What would you like to do?
<?php
// Remove default image sizes.
add_action('init', 'smntcs_remove_image_sizes');
function smntcs_remove_image_sizes() {
remove_image_size( 'course_archive_thumbnail' );
remove_image_size( 'course_single_thumbnail' );
remove_image_size( 'lesson_archive_thumbnail' );
remove_image_size( 'lesson_single_thumbnail' );
remove_image_size( 'portfolio_horizontal' );
remove_image_size( 'portfolio_slider' );
remove_image_size( 'portfolio_vertical' );
remove_image_size( 'shop_catalog' );
remove_image_size( 'shop_thumbnail' );
remove_image_size( 'woocommerce_gallery_thumbnail' );
remove_image_size( 'woocommerce_single' );
remove_image_size( 'woocommerce_thumbnail' );
}
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.