Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eusb_remove_image_sizes( $sizes ) {
- foreach ( $sizes as $key => $name ) {
- if ( in_array( $name, array( 'medium_large', '1536x1536', '2048x2048' ), true ) ) {
- unset( $sizes[ $key ] );
- }
- }
- // Return as consecutive array.
- return array_values( $sizes ;
- }
- add_action( 'intermediate_image_sizes', 'eusb_remove_image_sizes', 999 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement