paynl-extra2

The Woocommerce Pay.nl Payment Methods paynl extra2 hook.

Description

apply_filters( 'paynl-extra2', (unknown) $order_get_billing_email, (unknown) $order ); 

Parameters (2)

0. $order_get_billing_email (unknown)
The order get billing email.
1. $order (unknown)
The order.

Usage

To run the hook, copy the example below.
  1. $order_get_billing_email = apply_filters( 'paynl-extra2', $order_get_billing_email, $order ); 
  2.  
  3. if ( !empty( $order_get_billing_email ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the paynl-extra2 callback 
  2. function filter_paynl_extra2( $order_get_billing_email, $order ) { 
  3. // make filter magic happen here... 
  4. return $order_get_billing_email
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'paynl-extra2', 'filter_paynl_extra2', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'paynl-extra2', 'filter_paynl_extra2', 10, 2 ); 

Defined (1)

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

/includes/classes/Pay/Gateway/Abstract.php  
  1. 'extra2' => apply_filters( 'paynl-extra2', $order->get_billing_email(), $order ),