Created
April 24, 2014 18:14
-
-
Save DenisLeblanc/11264169 to your computer and use it in GitHub Desktop.
Automatically login users with Gravity Forms Registration Addon
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
<?php | |
add_action("gform_user_registered", "autologin", 10, 4); | |
function autologin($user_id, $config, $entry, $password) { | |
wp_set_auth_cookie($user_id, false, ''); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment