You can try this
/**
* WC: change products per page
* @return int
*/
function so22835795_loop_shop_per_page() {
return -1; //return any number, -1 === show all
};
add_filter('loop_shop_per_page', 'so22835795_loop_shop_per_page', 10, 0);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…