Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidWells/9076881 to your computer and use it in GitHub Desktop.
Save DavidWells/9076881 to your computer and use it in GitHub Desktop.
Manually reset lead mapping fields in WordPress Leads
/* Add to functions.php file. Refresh wordpress admin, then remove this code */
// OR run /wp-admin/?clear_lead_custom_field_cache=1 and it will flush the cache
add_action('init', 'manual_flush_inbound_form_map_transient')
if (!function_exists('manual_flush_inbound_form_map_transient')) {
// Refresh transient
function manual_flush_inbound_form_map_transient(){
delete_transient('wp-lead-fields');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment