Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/ninja-fo.../includes/Fields
File: Password.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_Password
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_Password extends NF_Abstracts_Input
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'password';
[7] Fix | Delete
[8] Fix | Delete
protected $_nicename = 'Password';
[9] Fix | Delete
[10] Fix | Delete
protected $_section = '';
[11] Fix | Delete
[12] Fix | Delete
protected $_type = 'password';
[13] Fix | Delete
[14] Fix | Delete
protected $_templates = array( 'password', 'textbox', 'input' );
[15] Fix | Delete
[16] Fix | Delete
public function __construct()
[17] Fix | Delete
{
[18] Fix | Delete
parent::__construct();
[19] Fix | Delete
[20] Fix | Delete
$this->_nicename = esc_html__( 'Password', 'ninja-forms' );
[21] Fix | Delete
[22] Fix | Delete
add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) );
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
function hide_field_type( $field_types )
[26] Fix | Delete
{
[27] Fix | Delete
$field_types[] = $this->_name;
[28] Fix | Delete
[29] Fix | Delete
return $field_types;
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function