ARForms Blog

arfbeforereplaceshortcodes


Usage:


add_filter('arfbeforereplaceshortcodes', 'your_function', 10, 4);
function your_function($html, $field, $error, $form){

//Replace HTML For shortcodes in field HTML.
if($field['type'] == 'FIELD-TYPE') {
$html = str_replace('[CUSTOMCONTENT]', 'CUSTOMCONTENTHTML', $html);
}

return $html;
}





Parameters:




$html

HTML of field before populating in form.




$field

Array of field options.




$error

Error flag to restrict field to be populated in form.




$form

Array of form options.



© 2021 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

Limited Time Offer

We are celebrating 8000 sales

Buy Now and get 8 premium add-ons it's FREEE

close-link

Notice: Undefined variable: ub in /home/arformsp/public_html/wp-content/themes/arforms_theme/functions.php on line 985

Notice: Undefined variable: ub in /home/arformsp/public_html/wp-content/themes/arforms_theme/functions.php on line 997