WordPress filter hook

wpforms_process_smart_tags

Fired by 5 WordPress plugins, running on 5M+ sites between them.

“Process smart tags.”

How to use wpforms_process_smart_tags

It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wpforms_process_smart_tags', function( $string, $form_data, $fields, $entry_id ) {
	// Change $string here.
	return $string;
}, 10, 4 );

Argument names come from Active Campaign & WPForms's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

5 plugins that fire wpforms_process_smart_tags

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WPForms icon WPForms5+ million installs apply_filters( 'wpforms_process_smart_tags', $content, $form_data, $fields, $entry_id, $context, $context_data ) includes/functions/forms.php:541
  2. WP Forms Signature Contract Add-On icon WP Forms Signature Contract Add-On800+ installs apply_filters( 'wpforms_process_smart_tags', $signer_name, $form_data, $fields, $entry_id ) admin/esig-wpform-admin.php:188
  3. PDF Builder for WPForms icon PDF Builder for WPForms800+ installs apply_filters( 'wpforms_process_smart_tags', $text, $form_data, $fields, $entryId ) Integration/Adapters/WPForm/Loader/WPFormSubLoader.php:202
  4. Active Campaign & WPForms icon Active Campaign & WPForms300+ installs apply_filters( 'wpforms_process_smart_tags', $string, $form_data, $fields, $entry_id ) includes/acwf-subscribe.php:85
  5. WPOP’s WPForms to HubSpot icon WPOP’s WPForms to HubSpot40+ installs apply_filters( 'wpforms_process_smart_tags', $string, $form_data, $fields, $entry_id ) includes/hbwf-subscribe.php:165

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.