Edit File by line
/home/barbar84/www/wp-conte.../plugins/ninja-fo.../includes/Abstract...
File: UserInfo.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Class NF_Abstracts_UserInfo
[3] Fix | Delete
*/
[4] Fix | Delete
abstract class NF_Abstracts_UserInfo extends NF_Fields_Textbox
[5] Fix | Delete
{
[6] Fix | Delete
protected $_name = 'input';
[7] Fix | Delete
[8] Fix | Delete
protected $_section = 'userinfo';
[9] Fix | Delete
[10] Fix | Delete
protected $_type = 'textbox';
[11] Fix | Delete
[12] Fix | Delete
public static $_base_template = 'textbox';
[13] Fix | Delete
[14] Fix | Delete
public function __construct()
[15] Fix | Delete
{
[16] Fix | Delete
parent::__construct();
[17] Fix | Delete
[18] Fix | Delete
$this->_settings = $this->load_settings(
[19] Fix | Delete
array( 'key',
[20] Fix | Delete
'label',
[21] Fix | Delete
'label_pos',
[22] Fix | Delete
'required',
[23] Fix | Delete
'default',
[24] Fix | Delete
'placeholder',
[25] Fix | Delete
'classes',
[26] Fix | Delete
'admin_label',
[27] Fix | Delete
'help',
[28] Fix | Delete
'description',
[29] Fix | Delete
'custom_name_attribute',
[30] Fix | Delete
'personally_identifiable',
[31] Fix | Delete
'disable_browser_autocomplete' )
[32] Fix | Delete
);
[33] Fix | Delete
[34] Fix | Delete
$this->_settings[ 'default' ][ 'settings' ][ 'default_type' ][ 'options' ][] = array(
[35] Fix | Delete
'label' => esc_html__( 'User Meta (if logged in)', 'ninja-forms' ),
[36] Fix | Delete
'value' => 'user-meta'
[37] Fix | Delete
);
[38] Fix | Delete
[39] Fix | Delete
$this->_settings[ 'default' ][ 'settings' ][ 'default_type' ][ 'value' ] = 'user-meta';
[40] Fix | Delete
[41] Fix | Delete
add_filter( 'ninja_forms_render_default_value', array( $this, 'filter_default_value' ), 10, 3 );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
abstract public function filter_default_value( $default_value, $field_class, $settings );
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function