Home › Forums › Quform WordPress › Value input
Hello,
I am sorry to disturb you, I am trying to add custom value in an input of my form.
In fact, I saw that I can use the hook :
function my_get_parameter($value){ $post = get_queried_object(); return get_post_meta($post->ID, ‘testboxdrop’, true); } add_filter(‘iphorm_element_value_myparam’, ‘my_get_parameter’);
But it’s not working.
For example, I create some user_meta in the database. The key of one of the user meta that I create is “date_naissance”
Is it right to write my function like this ?
function my_get_parameter($value){ return get_user_meta(get_current_user_id(), ‘date_naissance’); } add_filter(‘iphorm_element_value_myparam’, ‘my_get_parameter’);
If is it correct, how can I get the value in the form after doing this ?
Thank you very much for your help.
Fabio
You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.