cf_custom_fields_remove_file_fields

Remove file fields.

Description

(bool|array) cf_custom_fields_remove_file_fields( (array) $field, (array) $form ); 

Returns (bool|array)

Parameters (2)

0. $field (array)
The field.
1. $form (array)
The form.

Usage

  1. if ( !function_exists( 'cf_custom_fields_remove_file_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'caldera-custom-fields/includes/metabox.php'; 
  3.  
  4. // The field. 
  5. $field = array(); 
  6.  
  7. // The form. 
  8. $form = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = cf_custom_fields_remove_file_fields($field, $form); 
  12.  

Defined (1)

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

/includes/metabox.php  
  1. function cf_custom_fields_remove_file_fields( $field, $form ) { 
  2. if( Caldera_Forms_Field_Util::is_file_field( $field, $form ) ) { 
  3. return false; 
  4.  
  5. return $field; 
  6.