Pawan Kumawat

How To Change The Number Of Products On Shop Page In WooCommerce

WooCommerce is one of the most powerful e-commerce plugin for WordPress.And what i love with WooCommerce is that there’s an API for nearly everything.There are almost Hooks and filters For Every Customization work.


In order to change the number of products per page on shop page, you have to use 'loop_shop_per_page' hook.


In our example, we set number of products per page to 10. If you want a different number, just change Return value.


function change_WC_products_per_page() {
   return 10;
add_filter( 'loop_shop_per_page', 'change_WC_products_per_page', 20 );




Share This On :

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top

Request A Quote