我试了两个没有结果的片段:
//更改每页add_filter显示的WooCommerce产品数量(‘lw_shop_ Per _add_filter’,30 );函数lw_loop_shop_per_page//更改每页WooCommerce产品的显示数量(‘循环_add_filter_ Per _add_filter’,create_function( '$ Products ',‘返回12;’),30
不幸的是,在我的店里,所有的产品数量都是浮动的。我使用下面的代码接受浮动值作为数量在我的网站上。// Removes the WooCommerce filter, that is validating the quantity to be an int
// Add a filter, that validates the quantity to be