That’s a bit tricky because WordPress doesn’t offer this functionality out of the box. But a workaround would be to stop WordPress from generating additional image sizes for uploaded images. But it will apply to all image uploads, not just those in the WooCommerce product gallery. If you wanted to try it out, here’s the code for that:
function disable_image_sizes($sizes) {
unset($sizes['thumbnail']);
unset($sizes['medium']);
unset($sizes['large']);
unset($sizes['medium_large']);
unset($sizes['1536x1536']);
unset($sizes['2048x2048']);
// Add any additional sizes you want to remove
return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'disable_image_sizes');
Related Posts:
- Remote upload file to server B
- Restrict media upload size by format
- Redirect to another page using contact form 7? [closed]
- Soflyy WP All Import Custom File Download Issue
- I want to allow certain file types on dokan upload files
- “Add Media” button in custom plugin
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- What plugin can I use to create a list / slideshow of featured images?
- Plugin update error message
- Keep one user logged for a year?
- Upload specific images to specific folder
- Any plugin out there that uses WP’s internal image uploader?
- Customizing subject in comment notification e-mails
- if plugin is active? check if plugin is enabled or not?
- WP showing “warning: call_user_func_array()”, What to do?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- How to Loop Plugin Option Field Set?
- How to make WordPress use protocol indepentent upload files?
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Saving Plugin settings to the database
- Set a User as Author of all ‘New Posts’ posted
- How to create an edit media button for slideshow plugin?
- Post source link plugin – small modification
- Change destination author link
- How to turn off email you receive when registered?
- Custom Widget outputs the input but doesn’t save anything inside the textarea
- Deleting images through upload folder, but not deleting from media library
- How can i change an image’s author?
- Generated Images sizes do not match Media Settings Image Size
- HELP: Integrating WP with raw PHP code once published button is hit
- How to redirect Old Post URL to new Post and keep Old post Comments?
- Modifying Footnote Plugin for Descriptive Title Attributes
- I would like to use create a function in my custom plugin to tell WP to use a different header
- New Plugin: Post update pushes a copy as a revision
- How to Replace Words with Hypertext Link But Ignore Previously Existed Links?
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- bulk change of image setting “link to” to “link to: image url “
- Display a text message if the field is not found and not if found
- Scope for PHP Variables Assigned in functions.php or a plugin
- How to get post URL in the_content filter?
- Add a plugin before main container
- How to get subscription key or id using Woocommerce Subscriptions [closed]
- Missing argument 3 for wp_register_sidebar_widget()
- Find unused images?
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- add_query_arg not working
- add mediaelement.js plugins into WordPress video player control bar
- Shortcode button dosent work for all posts. Work for first post only
- Executing my function once on a specific time
- How to stop or remove an action being called inside a function of an extended class
- Media upload not working on theme option in WordPress 3.8.1
- wordpress plugin is not activating from widget
- Theme my Login plugin, how to update fields
- How organize uploaded media in WP?
- Edit Yoast SEO breadcrumbs output [closed]
- Date calculations from 2 custom fields
- Plugin or method to delete uploads not in media library?
- How to enable specific plugin only based around shop manager role?
- Override Plugin Script Fucnction in WordPress
- wp_generate_attachment_metadata is creating an empty array
- Adding a new field to the address field type in gravity forms
- Replacing a plugin function with a custom renamed function doesn’t work
- Nested shortcode functions accessing variable
- How to call WordPress function other files
- All sites themes functions.php have been changed
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Customize permalink wordpress category id
- Conditional attributes and logic per product category
- Auto move media file to cloud
- WP Query. Is there a maximum size?
- media page returnig to 404 in rtmedia [closed]
- Media Upload Tab reload and change $_GET
- WordPress get_avatar function not correct working
- Where to store media uploaded by the plugin?
- Every time I use wp_get_current_user() my plugin breaks
- How to echo a plugin’s function into a template?
- How to replace native comment_count with Comments Evolved aggregate count
- Find all strings between an enclosing shortcode
- How to create a dashboard for logged-in users with custom functionality? [closed]
- How to prevent intermediate images from being created but keep the sizes available for selection in the media library?
- It possible to implement an adhoc php web application with wordpress?
- Create csv file in plugin
- Cannot access variables within a widget
- Is there any wordpress function to update a random post every 10 minutes?
- Calling an custom field from theme option at the frontend
- Posting code inside the post instead of in the template file using shortcode
- WordPress function to add text
- Saving an array to get_options
- Saving plugin data returns “You do not have sufficient permissions to access this page.”
- Metabox Data not saving
- How to add a handler for a button in plugin?
- Contact Form 7: custom validation [closed]
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- date function not correctly returning date
- Doing action based on input from options menu
- Including a PHP file via a function that is part of a plugin?
- Showing author box on post detail page
- How to disable register and reset the password from WordPress admin panel?
- How use Dynamic hyperlink on each wordpress post?
- How to prevent page load on form submission