Gforms paypal save config

Description

This filter is fired when the PayPal feed is saved. It allows custom configuration options to be saved with the PayPal feed.

Usage

add_filter("gforms_paypal_save_config", "save_paypal_config");

Parameters

$config

(array) The configuration details for the current feed.

Examples

This example shows how to save the custom options added in the example on gform_paypal_option_group page to the PayPal configuration meta.

add_filter("gforms_paypal_save_config", "save_paypal_config");
function save_paypal_config($config){
    
    $config['my_third_party']['use_invoice_id'] = RGForms::post('my_third_party_invoice_id');
    $config['my_third_party']['transactions'] = RGForms::post('my_third_party_transactions');
    
    return $config;
}

Source Code

This filter is located in paypal.php

Search the Documentation