Description
The get_capabilities() function in the Add-On Framework retrieves all capabilities or a specific capability for the add-on.
Usage
$capabilities = get_capabilities( $capability );
Parameters
- **$capability ** string
Capability to return.
Examples
This example retrieves the capability for “gravityforms_mailchimp”
$capabilities = get_capabilities( 'gravityforms_mailchimp' );
Source Code
This function is located in the GFAddOn class in gravityforms/includes/addon/class-gf-addon.php