Skip to content

Commit

Permalink
[REST API] Fixed endpoints registered in /reports
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Sep 18, 2018
1 parent 2f9ca94 commit 48a0045
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions includes/api/class-wc-rest-reports-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,36 +35,36 @@ protected function get_reports() {
$reports = parent::get_reports();

$reports[] = array(
'slug' => 'orders/count',
'description' => __( 'Orders stats count.', 'woocommerce' ),
'slug' => 'orders/totals',
'description' => __( 'Orders totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'products/count',
'description' => __( 'Customers stats count.', 'woocommerce' ),
'slug' => 'products/totals',
'description' => __( 'Customers totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'customers/count',
'description' => __( 'Customers stats count.', 'woocommerce' ),
'slug' => 'customers/totals',
'description' => __( 'Customers totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'coupons/count',
'description' => __( 'Coupons stats count.', 'woocommerce' ),
'slug' => 'coupons/totals',
'description' => __( 'Coupons totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'reviews/count',
'description' => __( 'Reviews stats count.', 'woocommerce' ),
'slug' => 'reviews/totals',
'description' => __( 'Reviews totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'categories/count',
'description' => __( 'Categories stats count.', 'woocommerce' ),
'slug' => 'categories/totals',
'description' => __( 'Categories totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'tags/count',
'description' => __( 'Tags stats count.', 'woocommerce' ),
'slug' => 'tags/totals',
'description' => __( 'Tags totals.', 'woocommerce' ),
);
$reports[] = array(
'slug' => 'attributes/count',
'description' => __( 'Attributes stats count.', 'woocommerce' ),
'slug' => 'attributes/totals',
'description' => __( 'Attributes totals.', 'woocommerce' ),
);

return $reports;
Expand Down

0 comments on commit 48a0045

Please sign in to comment.