ARForms Blog

arffieldsreplaceshortcodes


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.

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