Ilya
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] wpcf7_before_send_mail and CAPTCHAThanks. Will check.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] wpcf7_before_send_mail and CAPTCHAIs there any after validate hook to use? It’s not critical to use wp_insert_post before or after mailing I suppose.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] wpcf7_before_send_mail and CAPTCHACan you try to replay this kind of error? Make some form, try to apply hook and see?
I mean is there my bug anywhere making it work this way?Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] wpcf7_before_send_mail and CAPTCHAHi, Takayuki. First of all, thanks for the great plugin.
I use CAPTCHA from CF7 admin (it asked to install Really Simple Captcha). At my form I output it like:
<p>Numbers<br />[captchac captcha-556][captchar captcha-556] </p>
And my code in functions.php:function my_wpcf7_save($cfdata) { $formdata = $cfdata->posted_data; $newpost = array(...); $newpostid = wp_insert_post($newpost); } add_action('wpcf7_before_send_mail', 'my_wpcf7_save',1);If I enter wrong numbers I’m given an error but post is created. So I have as many posts created, as many times person/spambot tries to submit form.
Viewing 4 replies - 1 through 4 (of 4 total)