Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created February 6, 2015 19:21
Show Gist options
  • Save sidharrell/8da2c256c5ab6921ddf7 to your computer and use it in GitHub Desktop.
Save sidharrell/8da2c256c5ab6921ddf7 to your computer and use it in GitHub Desktop.
more entropy in reg ids
//Build the registration id
function espresso_build_registration_id_custom($event_id){
remove_filter('filter_hook_espresso_registration_id', 'espresso_build_registration_id', 10, 1);
return uniqid($event_id . '-', true);
}
//Registration id filter
add_filter('filter_hook_espresso_registration_id', 'espresso_build_registration_id_custom', 8, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment