Advertisement
verygoodplugins

Untitled

Jan 23rd, 2020
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. function forms_merge_date( $update_data, $user_id, $contact_id, $form_id ) {
  2.  
  3.     $update_data['field[15,0]'] = date( 'm/d/Y' );
  4.  
  5.     return $update_data;
  6.  
  7. }
  8.  
  9. add_filter( 'wpf_forms_pre_submission', 'forms_merge_date', 10, 4 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement