17 Premium Addons Completely Free!!

Buy ARForms Now & Get

Grab the Deal

ARForms Blog

arffieldsreplaceshortcodes

Published 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.



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.