Merge pull request #5598 from splashingpixels/add-filter
add filter for admin stock report products per page
This commit is contained in:
commit
f41febc42a
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue