Reply To: automatically activate and login user after register

Home Forums Quform WordPress automatically activate and login user after register Reply To: automatically activate and login user after register

#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!

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy