LifterLMS_REST_API::rest_api_includes()
Include REST api specific files.
Contents
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/class-lifterlms-rest-api.php
public function rest_api_includes() { $includes = array( // Abstracts first. 'abstracts/class-llms-rest-controller-stubs', 'abstracts/class-llms-rest-controller', 'abstracts/class-llms-rest-users-controller', 'abstracts/class-llms-rest-posts-controller', // Functions. 'server/llms-rest-server-functions', // Controllers. 'server/class-llms-rest-api-keys-controller', 'server/class-llms-rest-access-plans-controller', 'server/class-llms-rest-courses-controller', 'server/class-llms-rest-sections-controller', 'server/class-llms-rest-lessons-controller', 'server/class-llms-rest-memberships-controller', 'server/class-llms-rest-enrollments-controller', 'server/class-llms-rest-instructors-controller', 'server/class-llms-rest-students-controller', 'server/class-llms-rest-students-progress-controller', 'server/class-llms-rest-webhooks-controller', ); foreach ( $includes as $include ) { include_once LLMS_REST_API_PLUGIN_DIR . 'includes/' . $include . '.php'; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.9 | Include memberships controller class file. |
1.0.0-beta.18 | Include access plans controller class file. |
1.0.0-beta.1 | Introduced. |