LifterLMS_Helper::init()

Inititalize the Plugin


Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-helper/class-lifterlms-helper.php

	public function init() {

		// Only load if we have the minimum LifterLMS version installed & activated.
		if ( function_exists( 'llms' ) && version_compare( '3.22.0', llms()->version, '<=' ) ) {

			$this->includes();
			$this->crons();

			if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
				$this->upgrader = LLMS_Helper_Upgrader::instance();
			}
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.3.1 Load the upgrader instance in WP_CLI context.
3.2.0 Use llms() in favor of deprecated LLMS().
3.0.0 Unknown.
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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