get_capabilities()

get_capabilities()

DescriptionUsageParametersExamplesSource Code

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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注