WordPress v4.4 introduced an additional image size named medium_large
which is is 768px wide by default, with no height limit. There is no UI for the medium_large
but the size can be changed by updating the options:
/**
* Updates the medium_large image size.
* It's only necessary to execute this code once.
* Ideally you'd want some kind of UI to allow the dimensions to be specified by the user.
*/
function wpse238808_update_image_size_medium_large() {
update_option( 'medium_large_size_w', 0 );
update_option( 'medium_large_size_h', 0 );
}
add_action( 'init', 'wpse238808_update_image_size_medium_large' );
Changing medium_large
‘s width and height to 0
like you’ve done with the other image sizes will prevent the additional images from being generated.
Related Posts:
- WordPress Media Uploader in page template (On Front-end)
- How wordpress handle upload images and how to use them in the code
- Can I get the ID of an inserted / linked image?
- In creating a theme, how can i allow a user to change an image outside post/page content?
- How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?
- wp.media issue with selected image
- Callback Function Not Firing On Selection In Media Uploader
- Can’t upload images on new theme
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- Get the first image from post content (eg.: hotlinked images)
- Reject upload of wrong-sized images using the Media Uploader
- Which filters or actions to use after a media upload and delete?
- How to modify an image block in Gutenberg WordPress 5?
- How can I set image sizes and still have responsive images using the srcset attribute?
- Add default Backgrounds
- Using Images in WordPress – Best Practices
- Media Upload Folder – how to manage
- Adding a custom image upload size and making it selected by default?
- Possible to “Attach” images to multiple posts without inserting or uploading twice?
- get_attached_media() returns empty array if media file already used by another post
- Settings in ‘Media > Settings’ is ignored when inserting images
- Specify image dimensions
- How to force Media manager to overwrite files of same name?
- How to get gallery images?
- Force wordpress to see uploads folder media
- add_image_size is scaling, even though crop is set to true
- Featured Image in 4.4 should be larger on mobile device
- How to use the responsive images feature from WP 4.4 in your themes
- Confused about image sizing business in WordPress
- How do i upload an image and return the image id?
- How can I stop WP media uploader from creating duplicates of my uploaded images?
- Replace Home with image link inside custom header menu
- I need a Simple image uploader with a simple screen. WP default has too many options.
- How to regenerate thumbnails when they’re stored on S3
- How can one update a theme on a live site without interruption?
- What’s the best “insert all images” plugin?
- How to stop unlink images when remove a site or user
- How to upload images using Settings API
- Site icons with alpha channel for self-hosted WordPress blog network
- Rename media files generated during upload
- trying to use wp_handle_upload with ajax
- How to float an image in Gutenberg
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- A mystery 300px image size
- Custom Field returning Numerical Value for Image rather than URL
- Reasons why all thumbnail sizes aren’t working
- How to make a local cache of mshots images
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- How do I Add images uploaded in the post to a default custom field
- image in my post disappeared after I upload website to remote server
- image url relative path not working in css file
- wp_generate_attachment_metadata is creating an empty array
- Ho to add “Create Slider” option to default “Add Media” popup?
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Responsive Images – crop don’t seem to work
- Change wp-content/uploads to uploads/%postname%/%image%
- Blank upload.php page
- Inserting images in multiple posts native gallery
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Redirect to another page using contact form 7? [closed]
- WordPress automatically adds links to uploaded images
- Gallery thumbnails very small
- Custom image size vs CSS sizing
- Change Responsive Images Maximum Width of 1600px
- how to retrieve the image title for image Post Format
- Theme logo metadata into template file
- Get featured image with custom size outside WordPress
- Control resizing of uploaded images
- Change Image Sizes for Mobile Theme
- Convert all uploaded PNG files to PNG-8 format
- How to make excerpt image be full size instead of thumbnail?
- How to add cropped custom header image?
- Add image URL automatically to custom field?
- Theming media inserts
- How can I remove image taxonomy pages from my theme and from Google?
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- ACF get_sub_field ALT TAG in the repeater doesn’t show
- WordPress Animation Adjustments
- theme directory fallback image outputs url and not the image
- Profile image does not upload
- cant upload media/pictures to my wordpress site, cant upload anything to my database
- unable to write to the database while uploading images
- Upload error on localhost (at minimum, not yet tested online)
- unsharp thumbnails after uploading image
- How to add an image to a theme page template in code?
- How to make the media library searchable by image title
- Customizer Image-Picker Preview Not Working
- Images use & location, on new wordpress theme
- Adding a Class to an Getting From Post Content
- Create image with imagepng() (fails at header)
- Missing Images in Uploads Directory (Server Only)
- How do I keep images in posts below a certain size without editing the post?
- Broken Media Library
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- Retina ready for uploaded images which are cropped
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- How can I add a single image from a gallery into the page header?
- Isotope overlapping .items because of featured images – HELP! [closed]
- I want to resize post featured image without cropping image. How?