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

    // 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

put on hold as off-topic by Pieter Goosen, birgire, toscho Jul 26 at 9:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the 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

Browse other questions tagged or ask your own question.