General Questions

I need to change the default WooCommerce sizes, is it possible?

Yes it is! To do so, go the plugin settings under WooCommerce Smart Image Resize → Settings:

Can I use the plugin to resize my blog Images?

Yes you can! Since only product images are resized by default, you need to add this code snippet to your theme functions.php under Appearance → Theme Editor:

add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'post';

return $post_types;

});

That's it!

Can I use the plugin to resize non-product Images? and How?

Yes you can! To resize images attached to any other post types, add the post type to $post_types array in the code snippet below:

add_filter('wp_sir_resize_post_type', function($post_types){
$post_types = (array) $post_types;
$post_types[] = 'my-custom-post-type';

return $post_types;

});

Can I resize all images in Media Library?

Yes you can! to do that you need to add this code snippet to your theme functions.php under Appearance → Theme Editor:

add_filter('wp_sir_is_attached_to', '__return_true');

Can I use the plugin with Dokan Multivendor?

Yes you can!

Can I use the plugin with WC Vendors ?

Yes you can! Just add this code snippet to your theme functions.php under Appearance → Theme Editor.

add_filter('wp_sir_process_frontend_upload', '__return_true');

Does the plugin resize images while importing products from a CSV or XML file?

Yes! Just make sure your server memory limit is set to at least 512M since bulk-import can be a resource-intensive task.

Is the plugin compatible with WP CLI?

Yes! You can use the command wp media regenerate to regenerate thumbnails to match your settings.

Why should I use the Regenerate Thumbnails plugin or similar?

To resize existing images, "Regenerate Thumbnails" plugin will bulk-process the images and trigger our plugin to resize them. Once the process is finished, you can deactivate or delete the "Regenerate Thumbnails" plugin.

Can I delete the plugin after I regenerate thumbnails?

Deleting the plugin is not recommended since WooCommerce or some other plugins may revert changes. Also, when you delete the plugin some features will stop working including WebP images not to mention that any newly uploaded image won't get resized, obviously. The plugin is lightweight and doesn't affect website performances.

How can I update the plugin to the latest version?

You can update the plugin via the Plugins page in your WordPress dashboard. When a new version is available, an notice will appear when viewing the Plugins page.

I don't find answer to my questions.

We're just a click away to answer all your questions. Contact us at support@sirplugin.com

Last updated