Skip to content

Instantly share code, notes, and snippets.

View saeedsys63's full-sized avatar
🏠
کار از خانه

Saeedsys saeedsys63

🏠
کار از خانه
View GitHub Profile
@saeedsys63
saeedsys63 / functions.php
Created August 28, 2021 07:21 — forked from WebEndevSnippets/functions.php
Gravity Forms: Auto login to site after GF User Registration Form Submittal
add_action( 'gform_user_registered','we_autologin_gfregistration', 10, 4 );
/**
* Auto login to site after GF User Registration Form Submittal
*
*/
function we_autologin_gfregistration( $user_id, $config, $entry, $password ) {
wp_set_auth_cookie( $user_id, false, '' );
}