Action
rpress_customer_stats_list
On this page
Fires at the end of the extension stats list on the customer detail view.
Runs inside the extension stats list (ul) shown under the metrics cards, after the built-in link to the customer's orders. Output list items (li) so the markup stays valid.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$customer | RPRESS_Customer | The customer being viewed. |
Example#
function my_customer_stats_list( $customer ) {
echo '<li>' . esc_html( sprintf( 'Lifetime value: %s', rpress_currency_filter( rpress_format_amount( $customer->purchase_value ) ) ) ) . '</li>';
}
add_action( 'rpress_customer_stats_list', 'my_customer_stats_list', 10, 1 );
Source#
Fired from:
includes/admin/customers/customers.php(line 578), inrpress_customers_view()
Was this page helpful?
