LLMS_Rest_Admin_Settings_Page::get_sections()

Get the page sections


Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/admin/class-llms-rest-admin-settings-page.php

	public function get_sections() {

		$sections = array();

		if ( current_user_can( 'manage_lifterlms_api_keys' ) ) {
			$sections['keys'] = __( 'API Keys', 'lifterlms' );
		}

		if ( current_user_can( 'manage_lifterlms_webhooks' ) ) {
			$sections['webhooks'] = __( 'Webhooks', 'lifterlms' );
		}

		/**
		 * Modify the available tabs on the REST API settings screen.
		 *
		 * @since 1.0.0-beta.1
		 *
		 * @param array $sections Array of settings page tabs.
		 */
		return apply_filters( 'llms_rest_api_settings_sections', $sections );

	}


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.