LLMS_Rest_Admin_Settings_Page::get_settings()
Get settings array
Return Return
(array)
Source Source
File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings-page.php
public function get_settings() {
$curr_section = $this->get_current_section();
$settings = array();
if ( current_user_can( 'manage_lifterlms_api_keys' ) && 'keys' === $curr_section ) {
$settings = LLMS_Rest_Admin_Settings_API_Keys::get_fields();
} elseif ( current_user_can( 'manage_lifterlms_webhooks' ) && 'webhooks' === $curr_section ) {
$settings = LLMS_Rest_Admin_Settings_Webhooks::get_fields();
}
return apply_filters( 'llms_rest_api_settings_' . $curr_section, $settings );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |