Created
July 2, 2014 17:41
-
-
Save gmaggio/71020f3a69dc29fa3173 to your computer and use it in GitHub Desktop.
[Wordpress] Pre-set default image sizes (programatically), thus sizes become fixed & unchangable.
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 | |
update_option( 'thumbnail_size_h', 150 ); | |
update_option( 'thumbnail_size_w', 150 ); | |
update_option( 'medium_size_h', 500 ); | |
update_option( 'medium_size_w', 500 ); | |
update_option( 'large_size_h', 1000 ); | |
update_option( 'large_size_w', 1000 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment