Post Process Data and Hooks

Home Forums Quform WordPress Post Process Data and Hooks

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6046
    GimmeMedia
    Participant

    Morning all, really hoping somebody can point me in the right direction on this. I am wanting to update a taxonomy for a particular post once a form has been submitted. I believe this can be done by adding code to the functions.php file.

    The code I have so far is
    function my_post_process($form)
    {
    $content = $form->getValue('iphorm_2_4');
    update_post_meta( $page_id, '_est_taxonomies', $content );
    }
    add_action('iphorm_post_process_2', 'my_post_process');

    So, the form I’m using has an ID of 2 – the data I want inserted is from form 2 and element 4.

    I have added this to the functions.php file but it doesn’t seem to work.

    My questions are :-

    a) is the code correct?
    b) do I need to add anything to any other file?

    Any help would really be appreciated 🙂

    #6050
    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.

    #6051
    GimmeMedia
    Participant

    Ally – you are a super star 😀 many thanks for the quick reply and the working code

    Regards – Toby

Viewing 3 posts - 1 through 3 (of 3 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