Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Admin_Dashboard::sales_sparkline( WC_Admin_Report $reports, bool $is_wc_admin_disabled = false, int $id = '', string $type = 'sales' )

Overwrites the original sparkline to use the new reports data if WooAdmin is enabled.


Description Description

Prepares a sparkline to show sales in the last X days.


Parameters Parameters

$reports

(Required) old class for getting reports.

$is_wc_admin_disabled

(Optional) If WC Admin is disabled or not.

Default value: false

$id

(Optional) ID of the product to show. Blank to get all orders.

Default value: ''

$type

(Optional) Type of sparkline to get. Ignored if ID is not set.

Default value: 'sales'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/class-wc-admin-dashboard.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.