How to set the default embed image size

When a user adds media to the WYSIWYG, is there a way to set the default image size to large?

It defaults to medium, I'd like this to be "large" without the user having to change the value.

Topic wysiwyg media images Wordpress

Category Web


If you add this to functions.php, this will update the options as set.

function custom_image_size() {
    // Set default values for the upload media box
    update_option('image_default_align', 'center' );
    update_option('image_default_size', 'large' );

}
add_action('after_setup_theme', 'custom_image_size');

You can update the options as you need.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.