From: Laury GvR Date: Tue, 7 Apr 2015 17:53:24 +0000 (-0400) Subject: Slight cleaning up of functions.php. X-Git-Tag: v1.1.0~1^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=21cd0c074e990688174831ac5557befe547769ec;p=WP-Themes%2Fgilmoremuseum.git Slight cleaning up of functions.php. --- diff --git a/functions.php b/functions.php index 15a7e32..4ff8832 100644 --- a/functions.php +++ b/functions.php @@ -263,20 +263,6 @@ function redirect_user_on_role() } add_action('admin_init', 'redirect_user_on_role'); -// Remove each style one by one -//add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); -//function jk_dequeue_styles( $enqueue_styles ) { -//unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss -//unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout -//unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation -//return $enqueue_styles; -//} -// Or just remove them all in one line -//add_filter( 'woocommerce_enqueue_styles', '__return_false' ); - - - add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 20;' ), 20 ); - ?>