wpcf7_control_init

The Contact Form 7 wpcf7 control init function.

Description

wpcf7_control_init(); 

Usage

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

Defined (1)

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

/includes/controller.php  
  1. function wpcf7_control_init() { 
  2. if ( ! isset( $_SERVER['REQUEST_METHOD'] ) ) { 
  3. return; 
  4.  
  5. if ( 'GET' == $_SERVER['REQUEST_METHOD'] ) { 
  6. if ( isset( $_GET['_wpcf7_is_ajax_call'] ) ) { 
  7.  
  8. if ( 'POST' == $_SERVER['REQUEST_METHOD'] ) { 
  9. if ( isset( $_POST['_wpcf7_is_ajax_call'] ) ) { 
  10.