Home › Forums › Quform WordPress › automatically activate and login user after register › Reply To: automatically activate and login user after register
November 13, 2019 at 1:43 am #30225
jennis015
Participant
Hi ally
i added this after the code of registration:
add_filter('quform_post_process_5', function (array $result, Quform_Form $form) {
wp_signon(array(
'user_login' => $username,
'user_password' => $password,
'remember' => true
), false);
return $result;
}, 10, 2);
but itsnt works. something is wrong? thanks!