-
-
Save billerickson/a012f20f2ad7185dd838497b1a9aab90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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