Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Fields
File: Quantity.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Fields_ProductQuantity
[3] Fix | Delete
*/
[4] Fix | Delete
class NF_Fields_Quantity extends NF_Fields_Number
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'quantity';
[7] Fix | Delete
[8] Fix | Delete
protected $_section = '';
[9] Fix | Delete
[10] Fix | Delete
protected $_icon = 'hashtag';
[11] Fix | Delete
[12] Fix | Delete
protected $_aliases = array();
[13] Fix | Delete
[14] Fix | Delete
protected $_type = 'quantity';
[15] Fix | Delete
[16] Fix | Delete
protected $_templates = 'number';
[17] Fix | Delete
[18] Fix | Delete
protected $_test_value = 'Lorem ipsum';
[19] Fix | Delete
[20] Fix | Delete
protected $_settings = array( 'product_assignment', 'number' );
[21] Fix | Delete
[22] Fix | Delete
protected $_settings_exclude = array( 'required', 'input_limit_set' );
[23] Fix | Delete
[24] Fix | Delete
public function __construct()
[25] Fix | Delete
{
[26] Fix | Delete
parent::__construct();
[27] Fix | Delete
[28] Fix | Delete
$this->_nicename = esc_html__( 'Quantity', 'ninja-forms' );
[29] Fix | Delete
}
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function