Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #856858

    Hi

    I’m using the enfold contact form and I want to process some data after the form is sent.
    I have setup a child theme and I included the following in my functions file.
    See: https://kriesi.at/support/topic/process-form-params-instead-sending-via-e-mail/

    
    add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    function avia_process_form_data($send, $new_post, $form_params)
    {
        file_put_contents('my_log.txt', 'TP2');
        return false;
    }
    

    Unfortunately it doesn’t seem to fire though.
    Can you think why?

    Kind Regards,

    • This topic was modified 7 years, 2 months ago by AdrianSmithUK.
    #856863

    Sorry. It must have been something to do with file permissions. This Works.

    add_filter('avf_form_send', 'avia_process_form_data', 10, 3);
    
    function avia_process_form_data($send, $new_post, $form_params)
    {
        wp_mail( ' (Email address hidden if logged out) ', 'TP2', 'TP2', "", "" );
    
        return false;
    }
    • This reply was modified 7 years, 2 months ago by AdrianSmithUK.
    #857087

    Hi,

    I’m glad you were able to get this fixed. If you need additional help, please let us know here in the forums

    Best regards,
    Jordan Shannon

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.