DEV Community

Cover image for Improve the WooCommerce default import tool with this snippet.
SeanAUS120
SeanAUS120

Posted on

Improve the WooCommerce default import tool with this snippet.

Here's a quick snippet to turbo charge the WooCommerce default import tool. It's set to 50 rows per import maximum, but this snippet will juice that number up to 5000. It shouldn't really max out your server unless you are trying to import photos from another website that is slow.

// Increase the default batch limit of 50 in the CSV product exporter to a more usable 5000
add_filter( 'woocommerce_product_export_batch_limit', function () {
    return 5000;
}, 999 );
Enter fullscreen mode Exit fullscreen mode

Currently in use at
Wild Posters
Monster Tees
Luxury Printing
Windsurfing Fitness
White Elephant Gift Ideas
Broadway Liquor
Rush Flyer Printing

Top comments (0)