NF_Fields_Hidden

Class NF_Fields_Hidden.

Defined (1)

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

/includes/Fields/Hidden.php  
  1. class NF_Fields_Hidden extends NF_Abstracts_Input 
  2. protected $_name = 'hidden'; 
  3.  
  4. protected $_nicename = 'Hidden'; 
  5.  
  6. protected $_section = 'misc'; 
  7.  
  8. protected $_icon = 'eye-slash'; 
  9.  
  10. protected $_type = 'hidden'; 
  11.  
  12. protected $_templates = 'hidden'; 
  13.  
  14. protected $_wrap_template = 'wrap-no-label'; 
  15.  
  16. protected $_settings_only = array( 
  17. 'key', 'label', 'default', 'admin_label' 
  18. ); 
  19.  
  20. protected $_use_merge_tags_include = array( 'calculations' ); 
  21.  
  22. public function __construct() 
  23. parent::__construct(); 
  24.  
  25. $use_merge_tags = array( 'include' => array( 'calculations' ) ); 
  26.  
  27. $this->_settings[ 'label' ][ 'width' ] = 'full'; 
  28. $this->_settings[ 'default' ][ 'group' ] = 'primary'; 
  29. $this->_settings[ 'default' ][ 'user_merge_tags' ] = $use_merge_tags; 
  30.  
  31. $this->_nicename = __( 'Hidden', 'ninja-forms' );