NF_Fields_CreditCardZip

Class NF_Fields_CreditCardZip.

Defined (1)

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

/includes/Fields/CreditCardZip.php  
  1. class NF_Fields_CreditCardZip extends NF_Fields_Zip 
  2. protected $_name = 'creditcardzip'; 
  3. protected $_type = 'creditcardzip'; 
  4.  
  5. protected $_section = ''; 
  6.  
  7. protected $_icon = 'credit-card'; 
  8.  
  9. protected $_templates = array( 'zip', 'textbox' ); 
  10.  
  11. protected $_settings_exclude = array( 'disable_input', 'input_limit_set' ); 
  12.  
  13. public function __construct() 
  14. parent::__construct(); 
  15.  
  16. $this->_nicename = __( 'Credit Card Zip', 'ninja-forms' ); 
  17.  
  18. add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) ); 
  19.  
  20. function hide_field_type( $field_types ) 
  21. $field_types[] = $this->_name; 
  22.  
  23. return $field_types;