SHARE
TWEET

Untitled

verygoodplugins Feb 14th, 2020 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function forms_merge_two_fields( $update_data, $user_id, $contact_id, $form_id ) {
  2.  
  3.     $update_data['StreetAddress1'] = $update_data['_CustomField1'] . ' ' . $update_data['_CustomField2'];
  4.  
  5.     return $update_data;
  6.  
  7. }
  8.  
  9. add_filter( 'wpf_forms_pre_submission', 'forms_merge_two_fields', 10, 4 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top