$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' ); ?>