sometimesNewFields

The Contact Form DB sometimesNewFields function.

Description

sometimesNewFields( &$entry ); 

Parameters (1)

0. $entry
The entry.

Usage

  1. if ( !function_exists( 'sometimesNewFields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-db/phpunit/TransformEntryFunctionTest.php'; 
  3.  
  4. // The entry. 
  5. $entry = &$entry; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = sometimesNewFields($entry); 
  9.  

Defined (1)

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

/phpunit/TransformEntryFunctionTest.php  
  1. function sometimesNewFields(&$entry) { 
  2. if ($entry['a'] == '1') { 
  3. $entry['c'] = $entry['a'] + $entry['b'];