Created
February 19, 2015 21:32
-
-
Save gyrus/c57fdfa8cee41350044f to your computer and use it in GitHub Desktop.
Override WordPress image sizes defined in admin
This file contains hidden or 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 | |
add_filter( 'option_thumbnail_size_w', function() { return 176; } ); | |
add_filter( 'option_thumbnail_size_h', function() { return 210; } ); | |
add_filter( 'option_thumbnail_crop', function() { return 1; } ); | |
add_filter( 'option_medium_size_w', function() { return 400; } ); | |
add_filter( 'option_medium_size_h', function() { return 265; } ); | |
add_filter( 'option_medium_crop', function() { return 1; } ); | |
add_filter( 'option_large_size_w', function() { return 746; } ); | |
add_filter( 'option_large_size_h', function() { return 372; } ); | |
add_filter( 'option_large_crop', function() { return 0; } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment