ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:43 PM

Hide Thumbnail Sizes from Media Uploader

Hide Thumbnail Sizes from Media Uploader

<?php

  function ccd_remove_image_size( $possible_sizes ) {
    unset( $possible_sizes['small'] );
    unset( $possible_sizes['medium'] );
    unset( $possible_sizes['large'] );
    return $possible_sizes;
  }
  
  add_filter( 'image_size_names_choose', 'ccd_remove_image_size' );

?>

Hide Thumbnail Sizes from Media Uploader

WordPress Snippet