wpcf7_sanitize_additional_settings

The Contact Form 7 wpcf7 sanitize additional settings function.

Description

wpcf7_sanitize_additional_settings( $input, (string) $default = '' ); 

Parameters (2)

0. $input
The input.
1. $default — Optional. (string) => ''
The default.

Usage

  1. if ( !function_exists( 'wpcf7_sanitize_additional_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-7/includes/contact-form-functions.php'; 
  3.  
  4. // The input. 
  5. $input = null; 
  6.  
  7. // The default. 
  8. $default = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = wpcf7_sanitize_additional_settings($input, $default); 
  12.  

Defined (1)

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

/includes/contact-form-functions.php  
  1. function wpcf7_sanitize_additional_settings( $input, $default = '' ) { 
  2. if ( null === $input ) { 
  3. return $default; 
  4.  
  5. $output = trim( $input ); 
  6. return $output;