Skip to content

Instantly share code, notes, and snippets.

@thierrypigot
Created July 9, 2015 09:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thierrypigot/5ce9c3ebb8d10de88d3b to your computer and use it in GitHub Desktop.
Save thierrypigot/5ce9c3ebb8d10de88d3b to your computer and use it in GitHub Desktop.
Permet d'interpréter les caractères html dans le label des fields.
add_filter( 'gform_field_content', 'tp_subsection_field', 10, 5 );
function tp_subsection_field( $content, $field, $value, $lead_id, $form_id )
{
return htmlspecialchars_decode( $content );
}
@AlTI5
Copy link

AlTI5 commented Jul 9, 2015

Merci! Pratique pour ajouter des images dans les titres des labels ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment