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