Skip to content

Instantly share code, notes, and snippets.

@trajche
Created October 23, 2014 19:30
Show Gist options
  • Save trajche/928d546c93cbe344ca09 to your computer and use it in GitHub Desktop.
Save trajche/928d546c93cbe344ca09 to your computer and use it in GitHub Desktop.
Remove Default Wordpress Thumbnail Sizes
//Remove default thumbanail sizes on all blogs (works on Wordpress multisite also)
<?php
function remove_default_image_sizes( $sizes) {
unset($sizes['thumbnail']);
unset($sizes['medium']);
unset($sizes['large']);
return $sizes;
}
add_filter('intermediate_image_sizes_advanced','remove_default_image_sizes');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment