Located in: admin.php

Functions that call this hook: wpsc_dashboard_widget()
Arguments Accepted: None
Version Introduced: 3.8

Description: wpsc_dashboard_widget() is the callback function for wp_add_dashboard_widget() The hook wpsc_admin_pre_activity is the very last thing called in this function and can be used to output any thing into the Sales Summary dashboard widget. Your content will be output after WP-e-Commerce has output its content to the widget.

Code in context:
[php firstline=”676″ highlight=”679″]
function wpsc_dashboard_widget() {
if ( current_user_can( ‘manage_options’ ) ) {
do_action( ‘wpsc_admin_pre_activity’ );
do_action( ‘wpsc_admin_post_activity’ );

Example Use:
add_action(‘wpsc_admin_post_activity’, ‘my_dashboard_widget_extra_content’);

function my_dashboard_widget_extra_content(){
//put whatever you want to display in the sales summary in here!

Similar hooks: wpsc_admin_pre_activity – called within the same function but before WP-e-Commerce has displayed the “Sales Summary” content.