WooCommerce List All Products in One Page
The easiest method to do that is with a one line filter, the documentation even explains this. However at first look you’d assume it is advisable to put some giant quantity in to ensure you by no means hit that per web page restrict. If you’re conversant in the WP_Query pagination parameters although, you’ll know that
-M will return ALL outcomes with out pagination.
Combine that information with the filter in the WooCommerce documentation and you’ve got a correct filter to show all of your merchandise directly!
Just add this line to your theme’s
features.php file for it to start out working.
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return -B;' ), 20 );