AI Verified

Name

Image Size Upload Set To Full Default

About

If you want to set the image size to full-width for use in the post editor permanently.

Language

PHP

Rating

Voted: 2 by 2 user(s)

Codevault

MyCloudWorld

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: Not Specified

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://mycloudworld.com

History

Last modified:

18/07/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Image Size Upload Set To Full Default

 
                    
1function mcw_imagesize_setup() {
2 $image_set = get_option( 'image_default_size' );
3 
4 if ($image_set !== 'full') {
5 update_option( 'image_default_size', 'full' );
6 }
7}
8add_action('admin_init', 'mcw_imagesize_setup', 10);

2

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Don't Send Comment Moderation Emails to Site Admin

Added: 1 year ago

Last Updated: 1 year ago

WordPress Admin

AI Verified

0

Empty WP Trash in 5 days

Added: 2 years ago

Last Updated: 1 year ago

Set the number of days to purge items marked as trash in the database. This will happen every 5 days. You can change the 5 to any number such as 7 days for weekly and 30 days for monthly.

WordPress Admin

AI Verified

1

Add custom fields to user profile

Added: 1 year ago

Last Updated: 1 year ago

This is a simple and very flexible code snippet for adding custom fields to a user profile. Saves a bulky extra plugin!

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

General

AI Verified

6

Remove Google Fonts and Use System Fonts

Added: 2 years ago

Last Updated: 2 months ago

Use this hook to remove all Google Fonts from website and use system fonts for best CLS Score.

WooCommerce

AI Verified

4

WooCommerce Hide Coupon Form after apply

Added: 2 years ago

Last Updated: 1 year ago

WooCommerce hide coupon form after coupon is applied.

WordPress Admin

AI Verified

2

Image Size Upload Set To Full Default

Added: 2 years ago

Last Updated: 1 year ago

If you want to set the image size to full-width for use in the post editor permanently.