woocommerce/plugins/woocommerce-admin/client/homescreen/stats-overview/defaults.js

22 lines
423 B
JavaScript

/**
* External dependencies
*/
import { applyFilters } from '@wordpress/hooks';
export const DEFAULT_STATS = applyFilters(
'woocommerce_admin_homepage_default_stats',
[
'revenue/total_sales',
'revenue/net_revenue',
'orders/orders_count',
'products/items_sold',
'jetpack/stats/visitors',
'jetpack/stats/views',
]
);
export const DEFAULT_HIDDEN_STATS = [
'revenue/net_revenue',
'products/items_sold',
];