LifterLMS_REST_API::init()

Include all required files and classes.


Return Return

(void)


Top ↑

Source Source

File: libraries/lifterlms-rest/class-lifterlms-rest-api.php

	 */
	public function init() {

		// Only load if we have the minimum LifterLMS version installed & activated.
		if ( ! function_exists( 'llms' ) || version_compare( '7.0.2', llms()->version, '>' ) ) {
			return;
		}

		// Load includes.
		$this->includes();

		add_action( 'init', array( $this->webhooks(), 'load' ), 6 );
		add_action( 'deleted_user', array( $this, 'on_user_deletion' ) );



Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.8 Load webhooks actions a little bit later: at init 6 instead of init 10, just after all the db tables are created (init 5), to avoid PHP warnings on first plugin activation.
1.0.0-beta.6 Load webhooks actions at init 1 instead of init 10.
1.0.0-beta.25 Perform some db clean-up on user deletion. Bump minimum required version to 6.5.0.
1.0.0-beta.22 Bump minimum required version to 6.0.0-alpha.1. Use llms() in favor of deprecated LLMS().
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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