More products shown per page.
authorLaury GvR <laury@gaslightmedia.com>
Tue, 22 Dec 2015 14:55:39 +0000 (09:55 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 22 Dec 2015 14:55:39 +0000 (09:55 -0500)
functions.php

index b33bc48..1cb175c 100644 (file)
@@ -365,4 +365,8 @@ add_action( 'after_setup_theme', 'woocommerce_support' );
 function woocommerce_support() {
     add_theme_support( 'woocommerce' );
 }
+
+// WooCommerce number of products shown
+add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
+
 ?>