wpcf7_acceptance_as_validation

The Contact Form 7 wpcf7 acceptance as validation function.

Description

wpcf7_acceptance_as_validation(); 

Usage

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

Defined (1)

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

/modules/acceptance.php  
  1. function wpcf7_acceptance_as_validation() { 
  2. if ( ! $contact_form = wpcf7_get_current_contact_form() ) 
  3. return false; 
  4.  
  5. return $contact_form->is_true( 'acceptance_as_validation' );