Hi @james,
I have inserted your code in functions.php but it doesn’t work. What would be wrong?
Greetings and thank you
function boldear($field) {
$text = get_field('usuario_pro');
$pattern = '/(.*)\*(.*)\*(.*)/';
$replacement = '$1<i>$2</i>$3';
//return preg_replace($pattern, $replacement, $text);
echo preg_replace($pattern, $replacement, $text);
}
//add_action('acf/include_field_types', 'boldear');
add_action('acf/render_field', 'boldear');