Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing pagination from Woocommerce product variations

By default, from the edit product page, Woocommerce begins to paginate product variations once you have more than 20 for a single product. How can I remove this pagination, so that all product variations can be viewed at once from the edit screen, regardless of how many there are?

like image 212
Josh Warren Avatar asked Dec 28 '25 13:12

Josh Warren


1 Answers

The previous answer is an absolute no-go. NEVER change plugin core files.

Please do the following:

add the following line in your functions.php (preferably in your child-theme folder too)

//Display 24 products on archive pages

add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
like image 63
Solomax Avatar answered Dec 31 '25 04:12

Solomax



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!