Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    The best way is to use the pref() method of the WPCF7_ContactForm class. You can also use a useful wrapper is_true().

    Usage:

    $submission = WPCF7_Submission::get_instance();
    
    $contact_form = $submission->get_contact_form();
    
    $flamingo_email = $contact_form->pref( 'flamingo_email' );
    
    $is_subscribers_only = $contact_form->is_true( 'subscribers_only' );
    Thread Starter Erik

    (@codekraft)

    thank you @takayukister, it works perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Get the additional field values’ is closed to new replies.