wpcf7_submit_nonajax

The Contact Form 7 wpcf7 submit nonajax function.

Description

wpcf7_submit_nonajax(); 

Usage

  1. if ( !function_exists( 'wpcf7_submit_nonajax' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/controller.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcf7_submit_nonajax(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/controller.php  
  1. function wpcf7_submit_nonajax() { 
  2. if ( ! isset( $_POST['_wpcf7'] ) ) { 
  3. return; 
  4.  
  5. if ( $contact_form = wpcf7_contact_form( (int) $_POST['_wpcf7'] ) ) { 
  6. $contact_form->submit();