-
-
Save hslaszlo/2018a85213119015b957797517fc3209 to your computer and use it in GitHub Desktop.
Szükségtelen képméretek eltávolítása WP-ből
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function remove_unused_image_sizes() | |
{ | |
remove_image_size( 'image-size-150x150' ); | |
remove_image_size( 'image-size-550x550' ); | |
remove_image_size( 'image-size-550x550-@2x' ); | |
} | |
add_action('init', 'remove_unused_image_sizes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment