$normal_dashboard[ self::WIDGET_KEY ] ); unset( $normal_dashboard[ self::WIDGET_KEY ] ); $sorted_dashboard = array_merge( $widget_instance, $normal_dashboard ); $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard; } /** * Load the widget content. */ public function dashboard_widget_content() { $is_authed = ( MonsterInsights()->auth->is_authed() || MonsterInsights()->auth->is_network_authed() ); if ( ! $is_authed ) { $this->widget_content_no_auth(); } else { $datepicker_options = array( 30, 7 ); $url = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_reports' ) : admin_url( 'admin.php?page=monsterinsights_reports' ); ?>


id ) && 'dashboard' === $screen->id ) { wp_enqueue_style( 'monsterinsights-dashboard-widget-styles', plugins_url( 'lite/assets/css/admin-dashboard-widget' . $suffix . '.css', MONSTERINSIGHTS_PLUGIN_FILE ), array(), monsterinsights_get_asset_version() ); wp_enqueue_script( 'jquery-ui-tooltip' ); wp_enqueue_script( 'monsterinsights-dashboard-widget', plugins_url( 'lite/assets/js/admin-dashboard-widget' . $suffix . '.js', MONSTERINSIGHTS_PLUGIN_FILE ), array( 'jquery' ), monsterinsights_get_asset_version(), true ); } } }