Description
The gform_addon_app_settings_menu_{$SHORT_SLUG} filter in Gravity Forms controls the addition or removal of tabs within the Gravity Forms settings menu.
Usage
The Gravity Forms Add-On Slugs lists the short slugs for the available add-ons.
The following would add a settings tab and determine the callback for the defined slug:
add_filter( 'gform_addon_app_settings_menu_{$SHORT_SLUG}', 'your_function_name' );
The following would run for the Mailchimp add-on:
add_filter( 'gform_addon_app_settings_menu_mailchimp', 'your_function_name' );
The following would run for the 2Checkout add-on:
add_filter( 'gform_addon_app_settings_menu_2checkout', 'your_function_name' );
Parameters
| Parameter | Type | Description |
|---|---|---|
$settings_tabs | array | Any existing settings tabs. Controls each of the tabs and the callback. |
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This filter is located in class-gf-addon.php.