NF_Fields_CreditCardCVC

Class NF_Fields_CreditCardCVC.

Defined (1)

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

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