Your IP : 18.117.72.244


Current Path : /home/church/www/ntktesting.com/wp-content/plugins/ninja-forms/includes/Fields/
Upload File :
Current File : /home/church/www/ntktesting.com/wp-content/plugins/ninja-forms/includes/Fields/Password.php

<?php if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * Class NF_Fields_Password
 */
class NF_Fields_Password extends NF_Abstracts_Input
{
    protected $_name = 'password';

    protected $_nicename = 'Password';

    protected $_section = '';

    protected $_type = 'password';

    protected $_templates = array( 'password', 'textbox', 'input' );

    public function __construct()
    {
        parent::__construct();

        $this->_nicename = esc_html__( 'Password', 'ninja-forms' );

        add_filter( 'nf_sub_hidden_field_types', array( $this, 'hide_field_type' ) );
        add_filter( 'ninja_forms_csv_ignore_fields', array( $this, 'hide_field_type' ) );
    }

    function hide_field_type( $field_types )
    {
        $field_types[] = $this->_name;

        return $field_types;
    }
}