Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

where (which module/subdir) I have to put this code ? How can I echo some value from this function ?

add_action("wpcf7_before_send_mail", "wpcf7_do_something_else_with_the_data");
function wpcf7_do_something_else_with_the_data(&$wpcf7_data)
{
    // Everything you should need is in this variable
    var_dump($wpcf7_data);

    // I can skip sending the mail if I want to...
    $wpcf7_data->skip_mail = true;

     echo "Hello World"; // will it work ?
}
share|improve this question
    
What is it that you want to do exactly? Unfortunately, I don't get what you want to be using this function for... Please reword your question, and I'm sure we'll be able to help you. –  t f Apr 4 '13 at 10:37
    
Add to your functions.php file and look for the Ajax response for your variables when you submit your form. –  RRikesh Apr 4 '13 at 11:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.