ae_ppddp_custom_parameter

The PayPal for WooCommerce ae ppddp custom parameter hook.

Description

apply_filters( 'ae_ppddp_custom_parameter', (unknown) $order_id, (unknown) $order ); 

Parameters (2)

0. $order_id — Optional. (unknown) => json_encode( array( 'order_id' => version_compare(WC_VERSION, '3.0', '<') ? $order->id : $order->get_id(), 'order_key' => version_compare( WC_VERSION, '3.0', '<' ) ? $order->order_key : $order->get_order_key() ) )
The json encode.
1. $order (unknown)
The order.

Usage

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

Defined (2)

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

/classes/wc-gateway-paypal-pro-angelleye.php  
  1. 'custom' => apply_filters( 'ae_ppddp_custom_parameter', json_encode( array( 'order_id' => version_compare(WC_VERSION, '3.0', '<') ? $order->id : $order->get_id(), 'order_key' => version_compare( WC_VERSION, '3.0', '<' ) ? $order->order_key : $order->get_order_key() ) ) , $order ), // Free-form field for your own use. 256 char max. 
  1. 'custom' => apply_filters('ae_ppddp_custom_parameter', $customer_note, $order), // Free-form field for your own use. 256 char max.