LifterLMS_REST_API::rest_api_controllers_init()
Instantiate REST api Controllers.
Contents
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/class-lifterlms-rest-api.php
public function rest_api_controllers_init() { $controllers = array( 'LLMS_REST_API_Keys_Controller', 'LLMS_REST_Courses_Controller', 'LLMS_REST_Sections_Controller', 'LLMS_REST_Lessons_Controller', 'LLMS_REST_Memberships_Controller', 'LLMS_REST_Instructors_Controller', 'LLMS_REST_Students_Controller', 'LLMS_REST_Students_Progress_Controller', 'LLMS_REST_Enrollments_Controller', 'LLMS_REST_Webhooks_Controller', 'LLMS_REST_Access_Plans_Controller', ); foreach ( $controllers as $controller ) { $controller_instance = new $controller(); $controller_instance->register_routes(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.9 | Init memberships controller. |
1.0.0-beta.18 | Init access plans controller. |
1.0.0-beta.1 | Introduced. |