Last active
March 5, 2019 09:19
-
-
Save JudeRosario/300e729e6a9b4e0969ee360248734d93 to your computer and use it in GitHub Desktop.
Send Keyy code on Woo signups
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
| <?php | |
| add_action('user_register', 'keyy_auto_send_qr_on_signup', 10, 1); | |
| function keyy_auto_send_qr_on_signup($user) { | |
| $keyy = Keyy_Login_Plugin_Premium(); | |
| $user_obj = get_user_by('id', $user); | |
| $keyy->user_send_connection_code($user_obj, 30); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment