LLMS_REST_Admin_Settings
Manage admin settings pages.
Contents
Source Source
File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings.php
class LLMS_REST_Admin_Settings { /** * Constructor. * * @since 1.0.0-beta.1 * * @return void */ public function __construct() { add_filter( 'lifterlms_get_settings_pages', array( $this, 'add_pages' ) ); } /** * Register the REST API settings page with the LifterLMS Core. * * @since 1.0.0-beta.1 * * @param array $pages Array of settings page classes. * @return array */ public function add_pages( $pages ) { $pages[] = include 'class-llms-rest-admin-settings-page.php'; return $pages; } }
Expand full source code Collapse full source code View on GitHub
Methods Methods
- __construct — Constructor.
- add_pages — Register the REST API settings page with the LifterLMS Core.
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |