(Created page with "__NOTOC__ == Description == This filter is fired when the PayPal feed is saved. It allows custom configuration options to be saved with the PayPal feed. == Usage == <pre class=...") |
|||
| Line 6: | Line 6: | ||
<pre class="brush:php"> | <pre class="brush:php"> | ||
| - | add_filter(" | + | add_filter("gform_paypal_save_config", "save_paypal_config"); |
</pre> | </pre> | ||
| Line 19: | Line 19: | ||
<pre class="brush:php"> | <pre class="brush:php"> | ||
| - | add_filter(" | + | add_filter("gform_paypal_save_config", "save_paypal_config"); |
function save_paypal_config($config){ | function save_paypal_config($config){ | ||
Latest revision as of 18:16, 2 March 2011
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("gform_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("gform_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