WC_REST_Reports_V1_Controller::get_reports
Get reports list.
Метод класса: WC_REST_Reports_V1_Controller{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_reports();
Список изменений
| С версии 3.5.0 | Введена. |
Код WC_REST_Reports_V1_Controller::get_reports() WC REST Reports V1 Controller::get reports WC 10.6.2
protected function get_reports() {
return array(
array(
'slug' => 'sales',
'description' => __( 'List of sales reports.', 'woocommerce' ),
),
array(
'slug' => 'top_sellers',
'description' => __( 'List of top sellers products.', 'woocommerce' ),
),
);
}