Set default parameters for customers report query.

This commit is contained in:
Jeff Stieler 2018-12-19 18:20:57 -07:00
parent 0c919add5d
commit a180566c2f
1 changed files with 7 additions and 1 deletions

View File

@ -29,7 +29,13 @@ class WC_Admin_Reports_Customers_Query extends WC_Admin_Reports_Query {
* @return array * @return array
*/ */
protected function get_default_query_vars() { protected function get_default_query_vars() {
return array(); return array(
'per_page' => get_option( 'posts_per_page' ), // not sure if this should be the default.
'page' => 1,
'order' => 'DESC',
'orderby' => 'date_registered',
'fields' => '*',
);
} }
/** /**