Last active
August 29, 2015 14:08
-
-
Save zachskaggs/d82acfb62b94cbc181aa to your computer and use it in GitHub Desktop.
Set hidden field to date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'ninja_forms_pre_process' , 'sn_add_date_to_submission' , 10 ); | |
function sn_add_date_to_submission(){ | |
global $ninja_forms_processing; | |
$ninja_forms_processing->update_field_value( 9 , current_time( 'm-d-Y' ) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment