gform_confirmation_actions

gform_confirmation_actions

DescriptionUsageParametersExamplesSource Code

Description
Modify the list of actions which display below the Confirmation Name on the Confirmations list view.
Usage
add_action( 'gform_confirmation_actions', 'my_custom_function' );

Parameters

$actions array
An array of current confirmation actions.

Examples
This example demonstrates how you can add custom confirmation actions.
Please note: the myCustomDuplicateConfirmationFunction() does not exist so the form will not actually be duplicated if you add this code sample.
add_action( 'gform_confirmation_actions', 'my_custom_confirmation_action' );
function my_custom_confirmation_action( $actions ) {

// adds a 'duplicate' action with a link that triggers some functionaliy on click
$actions['duplicate'] = 'Duplicate';

return $actions;
}

Source Code
This filter is located in GFConfirmationTable::column_name() in form_settings.php.

发表回复

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