fbpx
function wpf_dev_autologin( $user_id, $fields, $form_data, $userdata ) { wp_signon( array( 'user_login' => $userdata['user_login'], 'user_password' => $userdata['user_pass'], 'remember' => false, ) ); }