<?php /** * Double Opt-In Helper module * * @link https://contactform7.com/doi-helper/ */ add_action( 'wpcf7_doi', 'wpcf7_doihelper_start_session', 10, 3 ); /** * Starts a double opt-in session. */ function wpcf7_doihelper_start_session( $agent_name, $args, &$token ) { if ( isset( $token ) ) { return; } if ( ! function_exists( 'doihelper_start_session' ) ) { return; } $submission = WPCF7_Submission::get_instance(); if ( ! $submission ) { return; } $contact_form = $submission->get_contact_form(); $do_doi = apply_filters( 'wpcf7_do_doi', ! $contact_form->is_false( 'doi' ), $agent_name, $args ); if ( ! $do_doi ) { return; } $token = doihelper_start_session( $agent_name, $args ); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
akismet | Folder | 0755 |
|
|
constant-contact | Folder | 0755 |
|
|
recaptcha | Folder | 0755 |
|
|
sendinblue | Folder | 0755 |
|
|
stripe | Folder | 0755 |
|
|
acceptance.php | File | 7.39 KB | 0644 |
|
checkbox.php | File | 9.52 KB | 0644 |
|
count.php | File | 1.45 KB | 0644 |
|
date.php | File | 5.72 KB | 0644 |
|
disallowed-list.php | File | 1.77 KB | 0644 |
|
doi-helper.php | File | 730 B | 0644 |
|
file.php | File | 6.21 KB | 0644 |
|
flamingo.php | File | 8.34 KB | 0644 |
|
hidden.php | File | 776 B | 0644 |
|
listo.php | File | 755 B | 0644 |
|
number.php | File | 6.28 KB | 0644 |
|
quiz.php | File | 6.29 KB | 0644 |
|
really-simple-captcha.php | File | 13.82 KB | 0644 |
|
reflection.php | File | 2.27 KB | 0644 |
|
response.php | File | 460 B | 0644 |
|
select.php | File | 6.26 KB | 0644 |
|
submit.php | File | 2.31 KB | 0644 |
|
text.php | File | 8 KB | 0644 |
|
textarea.php | File | 4.89 KB | 0644 |
|