If someone wants to simply unset the additional image sizes, as opposed to changing the dimensions, use remove_image_size( string $name )
.
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 | function pinboard_child_theme_setup( $sizes) { $image_size_names = array('thumbnail', 'medium', 'large', 'slider-thumb', 'blog-thumb', 'teaser-thumb', 'gallery-1-thumb', 'gallery-2-thumb', 'gallery-3-thumb', 'image-thumb', 'video-thumb'); $image_size_names_length = count($image_size_names); for($x = 0; $x < $image_size_names_length; $x++) { remove_image_size($image_size_names[$x]); } } add_action( 'after_setup_theme', 'pinboard_child_theme_setup', 11); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.