17 Premium Addons Completely Free!!

Buy ARForms Now & Get

Grab the Deal

ARForms Blog

arf_form_fields_outside

1 min read

Usage:


add_filter('arf_form_fields_outside', 'your_function', 10, 2);
function your_function($field_json, $input_style){

foreach ($field_json->field_data as $key => $value) {
foreach ($value as $data_key => $data_value) {
if($data_key == 'KEY'){
$field_json->field_data->$key->$data_key = DEFAULT VALUE;
}
}
}

return $field_json;

}





Parameters:




$field_json

JSON array of fields data.




$input_style

Form inputs style.



facebook icon

Brian Denim

Brian is a WordPress expert with a decade of dev experience, a knack for technical writing, a film buff, and an outdoor enthusiast.

© 2024 Repute InfoSystems - All Rights Reserved.