Created
March 28, 2016 17:49
-
-
Save klhall1987/f7eafc51c3b8a747d9fe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
add_action( 'ninja_forms_display_init', 'my_filter_functiontwo', 10 ); | |
function my_filter_functiontwo( $form_id ) | |
{ | |
global $ninja_forms_loading; | |
if ( 66 == $form_id ) { | |
$user_info = get_userdata(1); | |
//Grab the user's first name and update the value of field 1098. | |
$ninja_forms_loading->update_field_value( 1098, $user_info->first_name ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment