Forked from anonymous/manual-flush-leads-mapping-transient.php
Last active
August 29, 2015 13:56
-
-
Save DavidWells/9076881 to your computer and use it in GitHub Desktop.
Manually reset lead mapping fields in WordPress Leads
This file contains hidden or 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 */ | |
// 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