ARForms Blog

arffieldsreplaceshortcodes

Last Updated On February 22, 2018

Usage:


add_filter('arffieldsreplaceshortcodes', 'your_function', 10, 4);
function your_function($value, $tag, $atts, $field){

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

return $value;
}





Parameters:




$value

Field entry value containing shortcodes.




$tag

Array of tags.




$atts

Array of entry values.




$field

Array of field 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