jetpack_stats_extra

This action is already documented in modules/widgets/gravatar-profile.php.

Description

do_action( 'jetpack_stats_extra', (string) $widget, (string) $grofile ); 

Can be used to track stats about the number of displays for a specific item

Parameters (2)

0. $widget (string) => 'widget'
Widget Item type (e.g. widget, or embed).
1. $grofile (string) => 'grofile'
Grofile Item description (e.g. grofile, goodreads).

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'jetpack_stats_extra', $widget, $grofile ); 
The following example is for adding a hook callback.
  1. // define the jetpack_stats_extra callback 
  2. function action_jetpack_stats_extra( $widget, $grofile ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'jetpack_stats_extra', 'action_jetpack_stats_extra', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'jetpack_stats_extra', 'action_jetpack_stats_extra', 10, 2 ); 

Defined (5)

The action is defined in the following location(s).

/modules/widgets/gravatar-profile.php  
  1. do_action( 'jetpack_stats_extra', 'widget', 'grofile' ); 
/modules/widgets/googleplus-badge.php  
  1. do_action( 'jetpack_stats_extra', 'widget', 'googleplus-badge' ); 
/modules/widgets/goodreads.php  
  1. do_action( 'jetpack_stats_extra', 'widget', 'goodreads' ); 
/modules/widgets/facebook-likebox.php  
  1. do_action( 'jetpack_stats_extra', 'widget', 'facebook-likebox' ); 
/modules/shortcodes/wufoo.php  
  1. do_action( 'jetpack_stats_extra', 'embeds', 'wufoo' );