gform_paypal_add_option_group

gform_paypal_add_option_group

DescriptionUsageParametersExamplesSource Code

Description
This hook is used to add groups of options to the PayPal feed.
Usage
1add_filter( 'gform_paypal_add_option_group', 'your_function_name', 10, 2 );

Parameters

$feed Feed Object
The configuration details for the current feed. This will be empty when initially creating a new form.

$form Form Object
The form for the current feed. This will be empty when initially creating a new form.

Examples
This example adds a group of checkbox fields which would allow the user to enable/disable a group of custom options.
1234567891011121314151617181920212223add_filter( 'gform_paypal_add_option_group', 'add_paypal_option_group', 10, 2 );function add_paypal_options( $feed, $form ) {    ?>     

                  

                

  •                                             
  •             

  •                                             
  •         

     

     get_current_feed(), $this->get_current_form() )
This filter is located in GFPayPal::settings_custom() in class-gf-paypal.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註