# 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:*

<figure><img src="https://1613911975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6IZsaWWLIsYTZFLvfP%2Fuploads%2FLbjbIIzTBbMTJHu7Xgvh%2FScreen%20Shot%2040.jpg?alt=media&#x26;token=1b1b0c35-9f2d-4a67-9f2c-8e1a94c33837" alt=""><figcaption></figcaption></figure>

### 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*:

```php
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:

```php
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*:

```php
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.*

```php
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.&#x20;

### 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.

![](https://1613911975-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M6IZsaWWLIsYTZFLvfP%2Fuploads%2FE6Y5SFg4ssdldffvCes6%2FScreen%20Shot%20188.jpg?alt=media\&token=a38ce74a-d060-4fb3-9f22-3e4d0160540e)

### 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>

###
