Value input

Home Forums Quform WordPress Value input

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19764
    buxum
    Participant

    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

    #19797
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy