AI Summary
Description
The wpforms_process_smart_tags filter is used to process Smart Tag(s) inside the WPForms form builder for areas such as labels, descriptions, HTML code blocks, etc.
Parameters
- $form_data
- (array) Processed form settings/data, prepared to be used later.
Source
wpforms/src/SmartTags/SmartTags.php
More Information
The filter is used to process Smart Tags inside other areas and form fields such as descriptions, labels, HTML code blocks, etc.
Example
/**
* Process Smart Tag.
*
* @link https://wpforms.com/developers/wpforms_process_smart_tags/
*
* @param array $form_data
* @return array
*/
function wpf_dev_process_smart_tags( $form_data ) {
// Run code snippet here
}
add_filter( 'wpforms_process_smart_tags', 'wpf_dev_process_smart_tags', 10, 3 );