ARForms Blog

arfreplaceshortcodes

Last Updated On February 22, 2018

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.



Comments are closed.

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

Subscribe To Our Newsletter For
Best Monthly Offers & Discounts!

Be a part of our subscription and stay updated with the latest deals we offer.
Subscribe Me!
No Thanks!
close-link