WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way that I can get POST data from contact form 7. I need those to store in a separate database. I think I can get these values by editing the core of the plugin, but with out that is there a way I can fetch form input values.

share|improve this question

closed as off-topic by Pieter Goosen, toscho Jul 28 '14 at 7:43

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.

Just hook into init and inspect the POST data:

add_action( 'init', 'wpse_59942_save_cf7_data' );

function wpse_59942_save_cf7_data()
{
    if ( 'POST' !== $_SERVER['REQUEST_METHOD'] )
    {
        return;
    }

    if ( isset ( $_POST['your_field_name'] ) )
    {
        // sanitize the data and save them to the data base.
    }
}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.