Wednesday, June 26, 2013

How to change Woocommerce products per page?

By adding the following one line code to your functions.php file, we will change the products per page in Woocommerce.
Now i would like to display 12 products in the place of regular 10 products.


add_filter('loop_shop_per_page',create_function('$cols','return 12;'),20);

No comments:

Post a Comment