wpcf7_current_action

The Contact Form 7 wpcf7 current action function.

Description

wpcf7_current_action(); 

Usage

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

Defined (1)

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

/admin/includes/admin-functions.php  
  1. function wpcf7_current_action() { 
  2. if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) { 
  3. return $_REQUEST['action']; 
  4.  
  5. if ( isset( $_REQUEST[''] ) && -1 != $_REQUEST[''] ) { 
  6. return $_REQUEST['']; 
  7.  
  8. return false;