On your WooCommerce store on your WordPress website you may want to update or change the number of WooCommerce products on each page of the website. If you want to do that without a plugin you can then add this code to your functions.php file. You may want to backup your WordPress website before you make updates to it.
Update how many products display on each WooCommerce page on WordPress
/** * Update products per page * * @author WPSnacks.com * @link https://www.wpsnacks.com */ add_filter( 'loop_shop_per_page', create_function( '$cols', 'return #;' ), 20 );
You can then replace the # with the number of products you want per page. Now if that works for you it would update the number of WooCommerce products on each page on there.
Leave a Reply