NF_Fields_CreditCardExpiration

Class NF_Fields_CreditCardExpiration.

Defined (1)

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

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