LifterLMS_REST_API::init()
Include all required files and classes.
Return Return
(void)
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' ) );
Expand full source code Collapse full source code View on GitHub
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. |