Change Media default size to Large in WordPress

Reading Time: < 1 minutes

Recently, when I add images to WordPress Editor, images are not set to large by default — which causes poor image resolution of some of my images.

To correct this issue, add these function below to your functions.php

// set the media to large by default
function my_default_image_size () {
    return 'large'; 
add_filter( 'pre_option_image_default_size', 'my_default_image_size' );

I hope this will help.

Was this post helpful?

Leave a Reply