Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active April 18, 2017 16:44
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 billerickson/a012f20f2ad7185dd838497b1a9aab90 to your computer and use it in GitHub Desktop.
Save billerickson/a012f20f2ad7185dd838497b1a9aab90 to your computer and use it in GitHub Desktop.
<?php
/**
* Smart Tags on HTML Field
*
* @author Bill Erickson
* @see http://www.billerickson.net/code/wpforms-smart-tags-html-field/
*
*/
function ea_smart_tags_on_html_field( $field, $field_atts, $form_data ) {
$field['code'] = wpforms()->smart_tags->process( $field['code'], $form_data );
return $field;
}
add_filter( 'wpforms_html_field_display', 'ea_smart_tags_on_html_field', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment