wpcf7_get_current_contact_form

The Contact Form 7 wpcf7 get current contact form function.

Description

wpcf7_get_current_contact_form(); 

Usage

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

Defined (1)

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

/includes/contact-form-functions.php  
  1. function wpcf7_get_current_contact_form() { 
  2. if ( $current = WPCF7_ContactForm::get_current() ) { 
  3. return $current;