Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * Load the Odyssey stats feature on WordPress.com Simple Site. |
| 4 | * See https://github.com/Automattic/jetpack/tree/trunk/projects/packages/stats-admin |
| 5 | * |
| 6 | * @package automattic/jetpack-mu-wpcom |
| 7 | */ |
| 8 | |
| 9 | use Automattic\Jetpack\Stats_Admin\Dashboard as OdysseyStats; |
| 10 | OdysseyStats::init(); |
| 11 | |
| 12 | /** |
| 13 | * Load the Odyssey stats widget in the Dashboard. |
| 14 | */ |
| 15 | if ( defined( 'JETPACK_PLUGIN_LOADER_PATH' ) ) { |
| 16 | require_once JETPACK_PLUGIN_LOADER_PATH . '/class-jetpack-stats-dashboard-widget.php'; |
| 17 | add_action( 'wp_dashboard_setup', array( new Jetpack_Stats_Dashboard_Widget(), 'init' ) ); |
| 18 | } |