最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

media - How to set the default embed image size

programmeradmin1浏览0评论

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.

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.

Share Improve this question asked May 17, 2016 at 14:27 Ben EverardBen Everard 1,2885 gold badges19 silver badges34 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 11

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.

发布评论

评论列表(0)

  1. 暂无评论