Action
rpress_sales_summary_widget_after_stats
On this page
Fires in the Sales Summary dashboard widget after the stats tables.
Runs in the AJAX-loaded RestroPress Sales Summary widget on the WordPress dashboard, after the sales summary tables and before the recent orders list. Print extra rows or blocks here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$stats | RPRESS_Payment_Stats | Stats object created for the widget. |
Example#
function my_sales_widget_after_stats( $stats ) {
echo '<p>' . esc_html( sprintf( 'Total sales: %d', rpress_get_total_sales() ) ) . '</p>';
}
add_action( 'rpress_sales_summary_widget_after_stats', 'my_sales_widget_after_stats', 10, 1 );
Source#
Fired from:
includes/admin/dashboard-widgets.php(line 143), inrpress_load_dashboard_sales_widget()
See also#
Was this page helpful?
