A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

You can hook into the register_post action as suggested here in a comment: WordPress Hook for user register Then add the user with wp_create_user or wp_insert_user (more detailed) where you can set a password.


0

The woocommerce_registration_redirect is a filter hook, but NOT an action hook. I've tried the shortcode provided in the mentioned link in your comment above and it works for me in this way: function AS_redirection_after_registration($redirection_url) { if($redirection_url =="first-page-slug") // $redirection_url is the slug of the current page where ...


0

I think you have to use this after registration for autologin. if ($userid) { $creds = array( 'user_login' => $data['email'], 'user_password' => $data['pssword'], 'remember' => true ); $user = wp_signon( $creds, false ); }


Top 50 recent answers are included