几百个产品翻一页一页翻下来很辛苦,默认的20个直接改100或200个
只需要在function.php增加几行代码
function filter_edit_product_per_page ( $per_page ) {
// The number of items to be displayed on product page of the list table
$per_page = 100;
return $per_page;
}
add_filter( 'edit_product_per_page', 'filter_edit_product_per_page', 10, 1 );
切记左下角点 update,刷新product 列表即可
function filter_edit_product_per_page ( $per_page )
{
// The number of items to be displayed on product page of the list table
$per_page = 100;
return $per_page;
}
add_filter( 'edit_product_per_page', 'filter_edit_product_per_page', 10, 1 );