Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LifterLMS::includes()

Include required core classes


Description Description


Return Return

(void)


Top ↑

Source Source

File: lifterlms.php

	private function includes() {

		if ( function_exists( 'has_blocks' ) && ! defined( 'LLMS_BLOCKS_VERSION' ) ) {
			require_once 'vendor/lifterlms/lifterlms-blocks/lifterlms-blocks.php';
		}

		// Only load bundled REST API if the plugin version doesn't exist.
		if ( ! class_exists( 'LifterLMS_REST_API' ) ) {
			require_once 'vendor/lifterlms/lifterlms-rest/lifterlms-rest.php';
		}

		require_once 'includes/llms.functions.core.php';
		require_once 'includes/class.llms.install.php';
		require_once 'includes/class.llms.session.php';
		require_once 'includes/class.llms.cache.helper.php';

		require_once 'vendor/prospress/action-scheduler/action-scheduler.php';

		require_once 'includes/class.llms.hasher.php';

		require_once 'includes/processors/class.llms.processors.php';
		include_once 'includes/abstracts/abstract.llms.admin.table.php';

		include_once 'includes/admin/class.llms.admin.assets.php';

		// privacy components
		require_once 'includes/privacy/class-llms-privacy.php';

		if ( is_admin() ) {

			include_once 'includes/admin/class-llms-admin-users-table.php';

			include_once 'includes/class-llms-staging.php';
			include_once 'includes/class.llms.dot.com.api.php';

			include_once 'includes/class.llms.generator.php';
			include_once 'includes/admin/class.llms.admin.import.php';

			include_once 'includes/controllers/class.llms.controller.admin.quiz.attempts.php';

			include_once 'includes/admin/post-types/tables/class.llms.table.student.management.php';

			require_once 'includes/admin/llms.functions.admin.php';
			include_once 'includes/admin/class.llms.admin.menus.php';
			include_once 'includes/admin/class.llms.admin.notices.php';
			include_once 'includes/admin/class.llms.admin.notices.core.php';
			include_once 'includes/admin/class.llms.admin.post-types.php';
			include_once 'includes/admin/post-types/class.llms.post.tables.php';

			if ( 'llms-setup' === llms_filter_input( INPUT_GET, 'page', FILTER_SANITIZE_STRING ) ) {
				require_once 'includes/admin/class.llms.admin.setup.wizard.php';
			}

			include_once 'includes/admin/reporting/widgets/class.llms.analytics.widget.ajax.php';
			include_once 'includes/admin/post-types/meta-boxes/fields/llms.class.meta.box.fields.php';
			include_once 'includes/admin/post-types/meta-boxes/fields/llms.interface.meta.box.field.php';
			include_once 'includes/class.llms.analytics.php';
			include_once 'includes/admin/class.llms.admin.reviews.php';
			require 'includes/abstracts/abstract.llms.admin.metabox.php';
			include_once 'includes/admin/class.llms.admin.user.custom.fields.php';
			include_once 'includes/admin/class.llms.student.bulk.enroll.php';

			require_once 'includes/admin/class-llms-admin-review.php';
			require_once 'includes/admin/class-llms-admin-export-download.php';
			require_once 'includes/admin/class-llms-sendwp.php';

		}

		// legacy
		include_once 'includes/class.llms.quiz.legacy.php';

		// nav menus
		require_once 'includes/class.llms.nav.menus.php';

		include 'includes/notifications/class.llms.notifications.php';

		// Date, Number and language formatting
		include_once 'includes/class.llms.date.php';
		include_once 'includes/class.llms.number.php';

		// oembed
		include_once 'includes/class.llms.oembed.php';

		// svg management
		include_once 'includes/class.llms.svg.php';

		// Post types
		include_once 'includes/class.llms.post-types.php';

		// sidebars
		require_once 'includes/class.llms.sidebars.php';

		// Payment Gateway
		require_once 'includes/abstracts/abstract.llms.payment.gateway.php';
		require_once 'includes/class.llms.gateway.manual.php';

		// Ajax
		include_once 'includes/class.llms.ajax.php';
		include_once 'includes/class.llms.ajax.handler.php';

		// Hooks
		include_once 'includes/llms.template.hooks.php';

		// Models
		require_once 'includes/abstracts/abstract.llms.post.model.php';
		foreach ( glob( LLMS_PLUGIN_DIR . 'includes/models/*.php', GLOB_NOSORT ) as $model ) {
			require_once $model;
		}

		// queries
		include_once 'includes/abstracts/abstract.llms.database.query.php';
		include_once 'includes/class.llms.query.quiz.attempt.php';
		include_once 'includes/class.llms.query.user.postmeta.php';
		include_once 'includes/class.llms.student.query.php';
		include_once 'includes/class-llms-events-query.php';
		include_once 'includes/notifications/class.llms.notifications.query.php';

		// Classes
		include_once 'includes/class.llms.lesson.handler.php';
		include_once 'includes/class.llms.course.factory.php';
		include_once 'includes/class.llms.question.types.php';
		include_once 'includes/class.llms.post.relationships.php';
		include_once 'includes/class.llms.review.php';
		include_once 'includes/class.llms.student.dashboard.php';
		include_once 'includes/class.llms.user.permissions.php';
		include_once 'includes/class.llms.view.manager.php';
		include_once 'includes/class.llms.l10n.js.php';

		// handler classes
		require_once 'includes/class.llms.person.handler.php';
		require_once 'includes/class.llms.post.handler.php';

		include_once 'includes/widgets/class.llms.widgets.php';
		include_once 'includes/widgets/class.llms.widget.php';

		include_once 'includes/class.llms.query.php';

		// controllers
		include_once 'includes/controllers/class.llms.controller.achievements.php';
		include_once 'includes/controllers/class.llms.controller.certificates.php';
		include_once 'includes/controllers/class.llms.controller.lesson.progression.php';
		include_once 'includes/controllers/class.llms.controller.orders.php';
		include_once 'includes/controllers/class.llms.controller.quizzes.php';

		// form controllers
		include_once 'includes/forms/controllers/class.llms.controller.account.php';
		include_once 'includes/forms/controllers/class.llms.controller.login.php';
		include_once 'includes/forms/controllers/class.llms.controller.registration.php';

		// comments
		include_once 'includes/class.llms.comments.php';

		// shortcodes
		require_once 'includes/shortcodes/class.llms.shortcodes.php';
		require_once 'includes/shortcodes/class.llms.shortcode.my.account.php';
		require_once 'includes/shortcodes/class.llms.shortcode.checkout.php';

		$this->query = new LLMS_Query();

		$this->course_factory = new LLMS_Course_Factory();

		if ( ! is_admin() ) {

			require_once 'includes/class.llms.https.php';

			include_once 'includes/class.llms.template.loader.php';
			include_once 'includes/class.llms.frontend.assets.php';

			// form classes
			include_once 'includes/forms/frontend/class.llms.frontend.forms.php';
			include_once 'includes/forms/frontend/class.llms.frontend.password.php';

			include_once 'includes/class.llms.person.php';

		}

		require_once 'includes/class-llms-grades.php';
		require_once 'includes/class-llms-events.php';
		require_once 'includes/class-llms-events-core.php';
		require_once 'includes/class-llms-sessions.php';
		require_once 'includes/class.llms.playnice.php';
		require_once 'includes/theme-support/class-llms-theme-support.php';

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.37.0 Include LLMS_Theme_Support class.
3.36.1 Include SendWP Connector.
3.36.0 Include events classes.
3.35.0 Access $_GET variable via llms_filter_input().
3.34.0 Include LLMS_Admin_Users Table class.
3.32.0-beta.2 Update action-scheduler to latest version; load staging class on the admin panel.
3.31.0 Add theme support includes.
1.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.