Tag Info

New answers tagged

1

One alternative is to modify the $_POST['user_login'] input value when submitting new registration form, that is before WP process the registration form. A good hook to achieve this is login_form_register that fires before processing and rendering registration form. login_init also works but need more work to make sure we are on register action. ...


0

You can alter user login via the pre_user_login filter. Note that this runs when the user is created or updated. function wpd_custom_user_login( $user_login ) { $user_login = 'the-auto-generated-name'; return $user_login; } add_filter( 'pre_user_login' , 'wpd_custom_user_login' );



Top 50 recent answers are included