Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2014 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/9076872 to your computer and use it in GitHub Desktop.
Save anonymous/9076872 to your computer and use it in GitHub Desktop.
Manually flush the wordpress lead "map to" transient
/* Add to functions.php file. Refresh wordpress admin, then remove this code
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