cf_custom_fields_submit_button_removal

Remove submit button.

Description

cf_custom_fields_submit_button_removal( $field ); 

Parameters (1)

0. $field
The field.

Usage

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

Defined (2)

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

/includes/metabox.php  
  1. function cf_custom_fields_submit_button_removal($field) { 
  2. if($field['type'] === 'button') { 
  3. $field['config']['class'] .= ' button'; 
  4. if( $field['config']['type'] === 'submit' ) { 
  5. return false; 
  6. return $field; 
  7.  
  1. function cf_custom_fields_submit_button_removal($field) { 
  2. if($field['type'] === 'button') { 
  3. $field['config']['class'] .= ' button'; 
  4. if( $field['config']['type'] === 'submit' ) { 
  5. return false; 
  6. return $field; 
  7.