Created
February 6, 2015 19:21
-
-
Save sidharrell/8da2c256c5ab6921ddf7 to your computer and use it in GitHub Desktop.
more entropy in reg ids
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
//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