User default values in form
-
Hello,
I would like to set input default values based on current logged user in the front form.
Does exist a way to do this ?
If not, could you please add one filter somewhere in plugin code in order to allow alteration of form inputs ?
Perhaps here :
wp-content/plugins/mailin/sendinblue.php
Line 516 (inside function generate_form_box, after testing $formData[‘html’] is empty)
add :$formData['html'] = apply_filters('generate_form_data', $formData['html'], $formData);
In this way, I could change input value=”{{my_value}}” with custom function.
firstname => user->first_name,
lastname => user->last_name,
email => user->user_email.Thank you ??
Best regards.
Joffrey
- The topic ‘User default values in form’ is closed to new replies.