gform_notification_actions

gform_notification_actions

DescriptionUsageParametersExamplesSource Code

Description
Modify the list of actions which display below the Notification Name on the Notifications list view.
Usage
1add_filter( 'gform_notification_actions', 'my_custom_function' );
Parameters

$actions array
An array of current notification actions.

Examples
This example demonstrates how you can add custom notification actions. Please note: the myCustomDuplicateNotificationFunction() does not exist so the form will not actually be duplicated if you add this code sample.
12345678add_filter( 'gform_notification_actions', 'my_custom_notification_action' );function my_custom_notification_action( $actions ) {     // adds a 'duplicate' action with a link that triggers some functionality on click    $actions['duplicate'] = 'Duplicate';     return $actions;}
Source Code
This filter is located in GFNotificationTable::column_name() in notification.php

发表回复

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