diff options
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-module-stats.php')
-rw-r--r-- | plugins/jetpack/sync/class.jetpack-sync-module-stats.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-module-stats.php b/plugins/jetpack/sync/class.jetpack-sync-module-stats.php deleted file mode 100644 index d23d3e00..00000000 --- a/plugins/jetpack/sync/class.jetpack-sync-module-stats.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -class Jetpack_Sync_Module_Stats extends Jetpack_Sync_Module { - - function name() { - return 'stats'; - } - - function init_listeners( $callback ) { - add_action( 'jetpack_heartbeat', array( $this, 'sync_site_stats' ), 20 ); - add_action( 'jetpack_sync_heartbeat_stats', $callback ); - } - /* - * This namespaces the action that we sync. - * So that we can differentiate it from future actions. - */ - public function sync_site_stats() { - do_action( 'jetpack_sync_heartbeat_stats' ); - } - - public function init_before_send() { - add_filter( 'jetpack_sync_before_send_jetpack_sync_heartbeat_stats', array( $this, 'add_stats' ) ); - } - - public function add_stats() { - return array( Jetpack::get_stat_data( false, false ) ); - } -} |