From: Laury GvR Date: Tue, 22 Dec 2015 14:55:39 +0000 (-0500) Subject: More products shown per page. X-Git-Tag: v1.0.0^2~49 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3f4261ede46cf44549408b558da00400aeb8490c;p=WP-Themes%2Fshipwreckmuseum.git More products shown per page. --- diff --git a/functions.php b/functions.php index b33bc48..1cb175c 100644 --- a/functions.php +++ b/functions.php @@ -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 ); + ?>