Created
February 18, 2014 18:32
-
-
Save anonymous/9076872 to your computer and use it in GitHub Desktop.
Manually flush the wordpress lead "map to" transient
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
/* 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