LLMS_Rest_Admin_Settings_Page::get_settings()

Get settings array


Return Return

(array)


Top ↑

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 );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.