wpcf7_acceptance_form_class_attr

The Contact Form 7 wpcf7 acceptance form class attr function.

Description

wpcf7_acceptance_form_class_attr( $class ); 

Parameters (1)

0. $class
The class.

Usage

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

Defined (1)

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

/modules/acceptance.php  
  1. function wpcf7_acceptance_form_class_attr( $class ) { 
  2. return $class . ' wpcf7-acceptance-as-validation'; 
  3.  
  4. return $class;