LLMS_Rest_Admin_Settings_Page::get_sections()
Get the page sections
Return Return
(array)
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 );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0-beta.1 | Introduced. |