ae_ppec_custom_parameter

The PayPal for WooCommerce ae ppec custom parameter hook.

Description

apply_filters( 'ae_ppec_custom_parameter', (unknown) $order_id ); 

Parameters (1)

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.

Usage

To run the hook, copy the example below.
  1. $order_id = apply_filters( 'ae_ppec_custom_parameter', $order_id ); 
  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_ppec_custom_parameter callback 
  2. function filter_ae_ppec_custom_parameter( $order_id ) { 
  3. // make filter magic happen here... 
  4. return $order_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ae_ppec_custom_parameter', 'filter_ae_ppec_custom_parameter', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ae_ppec_custom_parameter', 'filter_ae_ppec_custom_parameter', 10, 1 ); 

Defined (3)

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

/angelleye-includes/express-checkout/class-wc-gateway-paypal-express-request-angelleye.php  
  1. 'custom' => apply_filters('ae_ppec_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()))), 
  1. 'custom' => apply_filters('ae_ppec_custom_parameter', ''), 
  1. 'custom' => apply_filters('ae_ppec_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()))), // Free-form field for your own use. 256 char max.