wordpress - What Contact Form 7 action should I hook into for seed submitted data AFTER validation and spam filters? -


i'm building api integration wordpress plugin forwards from's data crm's api.

i've got working on contact form 7 adding action after 'wpcf7_submit'.

// wpcf7_submit available since contacform7 4.1.2, testes 4.4 add_action("wpcf7_submit", "crm_forward_cf7_to_crm", 10, 2);   function crm_forward_cf7_to_crm($form,$result) {    // todo has spam been filtered already?   // todo has form been validated already?    $submission = wpcf7_submission::get_instance();   if ( $submission ) {     $posted_data = $submission->get_posted_data();     $posted_data = crm_filter_cf7_data($posted_data);     crm_post_form($posted_data);   } }; 

my questions are:

has submission been filtered out spam validation (e.g.: akismet) @ point?

has cf7 validated form @ point?

i'm not sure akimeset (but judging form possible statuses did kind of spam validation time), @ point cf7 has validated it.
can check if it's valid , not spam, $result['status']; possible values are:

  • validation_failed
  • acceptance_missing
  • spam
  • mail_sent
  • mail_failed

if validation has failed, able retrieve failed fields array $result['invalid_fields'] response $result['message']


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -