ARForms Blog

arfgetdefaultvalue


Usage:


add_filter('arfgetdefaultvalue', 'your_function', 10, 2);
function your_function($default_value = '', $field){
//Filter your fields default value.
if($field->type == 'FIELD-TYPE' ){
$default_value = 'SET DEFAULT VALUE';
}
return $default_value;
}





Parameters:




$default_value

Default value of field.




$field

Array of all options of fields.



Comments are closed.

© 2020 Repute InfoSystems - All Rights Reserved. Our Other Products ARMember and ARPrice Plugin