Skip to content

Instantly share code, notes, and snippets.

@jbma
Created December 1, 2016 17:01
Show Gist options
  • Save jbma/08d23dd6e963aaa22697e543b316f1cb to your computer and use it in GitHub Desktop.
Save jbma/08d23dd6e963aaa22697e543b316f1cb to your computer and use it in GitHub Desktop.
<?php
function add_image_insert_override($sizes){
unset( $sizes['thumbnail_1']);
unset( $sizes['large']);
return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'add_image_insert_override' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment