Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Fields
File: Hidden.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_Hidden
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_Hidden extends NF_Abstracts_Input
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'hidden';
[7] Fix | Delete
[8] Fix | Delete
protected $_nicename = 'Hidden';
[9] Fix | Delete
[10] Fix | Delete
protected $_section = 'misc';
[11] Fix | Delete
[12] Fix | Delete
protected $_icon = 'eye-slash';
[13] Fix | Delete
[14] Fix | Delete
protected $_type = 'hidden';
[15] Fix | Delete
[16] Fix | Delete
protected $_templates = 'hidden';
[17] Fix | Delete
[18] Fix | Delete
protected $_wrap_template = 'wrap-no-label';
[19] Fix | Delete
[20] Fix | Delete
protected $_settings_only = array(
[21] Fix | Delete
'key', 'label', 'default', 'admin_label'
[22] Fix | Delete
);
[23] Fix | Delete
[24] Fix | Delete
protected $_use_merge_tags_include = array( 'calculations' );
[25] Fix | Delete
[26] Fix | Delete
public function __construct()
[27] Fix | Delete
{
[28] Fix | Delete
parent::__construct();
[29] Fix | Delete
[30] Fix | Delete
$use_merge_tags = array( 'include' => array( 'calculations' ) );
[31] Fix | Delete
[32] Fix | Delete
$this->_settings[ 'label' ][ 'width' ] = 'full';
[33] Fix | Delete
$this->_settings[ 'default' ][ 'group' ] = 'primary';
[34] Fix | Delete
$this->_settings[ 'default' ][ 'user_merge_tags' ] = $use_merge_tags;
[35] Fix | Delete
[36] Fix | Delete
$this->_nicename = esc_html__( 'Hidden', 'ninja-forms' );
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function