Skip to content
Docs
Get RestroPress

Action

rpress_sales_summary_widget_after_stats

Updated
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#

ParameterTypeDescription
$statsRPRESS_Payment_StatsStats 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), in rpress_load_dashboard_sales_widget()

See also#

Was this page helpful?