# learnpress/4.4.8/assets/src/js/admin/admin-statistic.js

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 40 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/assets/src/js/admin/admin-statistic.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/assets/src/js/admin/admin-statistic.js
- Modified: 2026-09-18T11:22:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.8/code/assets/src/js/admin/admin-statistic.js#L10-L20`.

```javascript
/**
 * Statistics dashboard entry — bootstraps the per-tab modules.
 *
 * All four tabs run on the statistics/* module stack (state, api, chart,
 * data-table, report-modal); the legacy per-tab loaders are gone.
 *
 * @since 4.2.5.5
 * @version 2.0.0
 */

import * as lpUtils from 'lpAssetsJsPath/utils.js';
import { lpStatsFilterBar, LpStatsFilterBar } from './statistics/filter-bar.js';
import { lpStatsReportModal } from './statistics/report-modal.js';
import { lpStatsTabOverview, LpStatsTabOverview } from './statistics/tab-overview.js';
import { lpStatsTabOrders, LpStatsTabOrders } from './statistics/tab-orders.js';
import { lpStatsTabCourses, LpStatsTabCourses } from './statistics/tab-courses.js';
import { lpStatsTabUsers, LpStatsTabUsers } from './statistics/tab-users.js';
import { lpStatsTabInstructors, LpStatsTabInstructors } from './statistics/tab-instructors.js';

lpUtils.lpOnElementReady( LpStatsFilterBar.selectors.elContainer, () => {
	lpStatsFilterBar.init();
} );
// SweetAlert2 popup: delegated events only, no rendered container to wait for.
lpStatsReportModal.init();
lpUtils.lpOnElementReady( LpStatsTabOverview.selectors.elContainer, () => {
	lpStatsTabOverview.init();
} );
lpUtils.lpOnElementReady( LpStatsTabOrders.selectors.elContainer, () => {
	lpStatsTabOrders.init();
} );
lpUtils.lpOnElementReady( LpStatsTabCourses.selectors.elContainer, () => {
	lpStatsTabCourses.init();
} );
lpUtils.lpOnElementReady( LpStatsTabUsers.selectors.elContainer, () => {
	lpStatsTabUsers.init();
} );
lpUtils.lpOnElementReady( LpStatsTabInstructors.selectors.elContainer, () => {
	lpStatsTabInstructors.init();
} );

```
