Merge pull request #5598 from splashingpixels/add-filter

add filter for admin stock report products per page
This commit is contained in:
Mike Jolley 2014-06-06 16:05:29 +01:00
commit f41febc42a
1 changed files with 1 additions and 1 deletions

View File

@ -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 );