From 2757573bb2a3bbe3eecc732365579b34cc503c86 Mon Sep 17 00:00:00 2001 From: splashingpixels Date: Sat, 31 May 2014 13:45:47 -0700 Subject: [PATCH] add filter for admin stock report products per page --- includes/admin/reports/class-wc-report-stock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/reports/class-wc-report-stock.php b/includes/admin/reports/class-wc-report-stock.php index 32dca6abf96..50c25155dd6 100644 --- a/includes/admin/reports/class-wc-report-stock.php +++ b/includes/admin/reports/class-wc-report-stock.php @@ -156,7 +156,7 @@ class WC_Report_Stock extends WP_List_Table { public function prepare_items() { $this->_column_headers = array( $this->get_columns(), array(), $this->get_sortable_columns() ); $current_page = absint( $this->get_pagenum() ); - $per_page = 20; + $per_page = apply_filters( 'woocommerce_admin_stock_report_products_per_page', 20 ); $this->get_items( $current_page, $per_page );