Advertisement
verygoodplugins

Untitled

Jun 20th, 2019
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. function merge_additional_checkout_data( $customer_data, $order ) {
  2.  
  3.     if( isset( $customer_data['Test: Drip Subscription via WPFusion 1'] ) ) {
  4.         $customer_data['wpfusion'] = $customer_data['Test: Drip Subscription via WPFusion 1'];
  5.     } else {
  6.         $customer_data['wpfusion'] = null;
  7.     }
  8.  
  9.     return $customer_data;
  10.  
  11. }
  12.  
  13. add_filter( 'wpf_woocommerce_customer_data', 'merge_additional_checkout_data', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement