pmpro_payment_option_fields

Gateway Specific Settings.

Description

do_action( 'pmpro_payment_option_fields', (unknown) $payment_option_values, (unknown) $gateway ); 

Parameters (2)

0. $payment_option_values (unknown)
The payment option values.
1. $gateway (unknown)
The gateway.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'pmpro_payment_option_fields', $payment_option_values, $gateway ); 
The following example is for adding a hook callback.
  1. // define the pmpro_payment_option_fields callback 
  2. function action_pmpro_payment_option_fields( $payment_option_values, $gateway ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'pmpro_payment_option_fields', 'action_pmpro_payment_option_fields', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'pmpro_payment_option_fields', 'action_pmpro_payment_option_fields', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/adminpages/paymentsettings.php  
  1. <?php do_action('pmpro_payment_option_fields', $payment_option_values, $gateway); ?>