Categories
PHP Programming Wordpress

Change WooCommerce Items Per Page

To change displayed WooCommerce Items Per Page, add this code to any PHP file (end of “woocommerce.php” / your theme functions.php, etc)

// Woo commerce 9 items per page
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 9;' ), 20 );