gform_paypal_action_fields

gform_paypal_action_fields

DescriptionUsageParametersExamplesSource Code

Description
This hook is used add individual options to the PayPal feed.
Usage
1add_action( 'gform_paypal_action_fields', 'add_paypal_options', 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 checkbox field which would enable/disable a custom option.
1234567891011add_action( 'gform_paypal_action_fields', 'add_paypal_options', 10, 2 );function add_paypal_options( $feed, $form ) {    ?>     

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

    发表回复

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