Created
December 29, 2014 06:20
-
-
Save khromov/fb3e69be3783cf547ab2 to your computer and use it in GitHub Desktop.
Change default image size in Add Media (Insert image) dialogue in WordPress
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('pre_option_image_default_size', function($value) | |
| { | |
| return 'large'; //Set to whatever you wish | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment