17 Premium Addons Completely Free!!

Buy ARForms Now & Get

Grab the Deal

ARForms Blog

arfreplaceshortcodes

1 min read

Usage:


add_filter('arfreplaceshortcodes', 'your_function', 10, 5);
function your_function($html,$field,$fields,$errors,$form){

//Replace shortcodes with field HTML.
if($field['type'] == 'FIELD-TYPE') {
$html = str_replace('[SHORTCODE]', 'HTML CONTENT', $html);
}

return $html;
}





Parameters:




$html

HTML of field before populating in form.




$field

Array of field options.




$fields

Array of all fields.




$errors

Array of errors for field.




$form

Array of form options.



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.