As far as i know there is no hook or filter to provide a custom User name for default registration process, however if you really want to modify it, you can alter the $_POST data.
here is the sample code:
add_action('wp_loaded', 'wpse_138736_filter_username');
function wpse_138736_filter_username(){
//your code to extract username from email
$_POST['user_login'] = 'test';
}
It kicks in before validation, and this way you’ll be able to provide custom username.
Related Posts:
- Downloadable content only for subscribers?
- What characters are allowed in an email address?
- How to display user registration form on front-end of the website?
- What is an easy way to display a front-end user registration form?
- User registration problem in WordPress
- Email as Username in registration
- Custom Registration Template/Page
- Registration form labels – add asterisk
- Sending form data via PHPMailer – How to action PHP script from a form
- How to create and retrieve data from a special registration form?
- How to redirect new WordPress user to previous page after registering
- How can I create registration form for users which I can assign role and profile picture?
- Adding a new user from the front end
- Contact Form 7 not sending emails- no confirmation, no error [closed]
- Remove field in the form : only works for “url”, not for “email”?
- PHP form is not sending mail if I use mime type and version in header. How to solve this? [closed]
- Create a registration form with a PayPal checkout fee? [closed]
- WordPress Emails & Contact Forms [closed]
- Saved emails at dashboard
- How can I modify labels in default wordpress registration form? [duplicate]
- Display number of sign-ups [closed]
- Email from my theme’s contact form doesn’t get the reply-to address right
- Email form getting hacked
- WordPress – Users with contact form on profile
- Am receiving more than thousand mails in single day from ‘[email protected]’ continuously
- Sending Form data as Attachment
- How to call or add password input / generate password / password strenght meter in custom registration form?
- Sending email via function in page or setting up the action properly in another page
- Send contact form to a specific referrer-email adres
- Send message to author without showing email address [duplicate]
- Create register form plus send post
- Submit button returns to index page instead of sending data
- Form that stores emails [closed]
- WordPress – custom user flow registration approval
- How do I register user without being authenticated
- How can I add email code authentication on form submission without any wp plugin?
- How to include landing page with form submission?
- User Without Email?
- Problem with Hebrew characters in username
- Is wp_nonce_field vulnerable if you know the action name?
- How can i force Display names to be the same as Usernames?
- Login email after registration never sent or received
- How to disable wordpress confirmation email for new users
- set_query_var doesn’t seem to work on init hook
- How to send multipart form data to WordPress endpoint
- Placeholders in Jetpack Contact Form [closed]
- How to hook into user registration process Before user registers
- Loading scripts & styles from a meta box callback function
- White spaces in username give 404 on author page
- auto assign sequence base username while registration
- Send Notifications to All Admins
- How to Process Form Request
- How to check username availability with ajax at registration
- limit characters when posting from form
- Adding data to an array in usermeta and displaying it in a loop
- wordpress do not let user registered with info@ email and other reserved emails to get registered by users
- Add new user and site per front end form
- Can i add password field into my wp registration form?
- Create form on plugin options page that creates submenu pages for that plugin
- 2 Email addresses for each user
- Post submit using shortcode and init
- Password protected page with a form submits for me fine but for others redirects them back to the password prompt
- What form element names break wordpress?
- I am trying to grab the title and put it in a paypal form select option
- Should I use wp_nonce_field on my contact form?
- How do I troubleshoot registration/password email errors?
- Programmatically populate form fields with data
- What is correct way to change user’s email?
- advanced custom fields and contact form 7
- Stop SPAM from custom form
- Custom tables and using wpdb to insert into DB from a html form
- Send value of PHP variable in template via hidden field in a form
- Custom User Registration script only allowing usernames with 16 characters
- WordPress Frontend Post Form (Bootstrap Modal) Not Creating Post
- How to use HubSpot Forms API in WordPress pages?
- Update user meta on custom wordpress form and redirect
- Send email for confirmation during user registration
- Embed IPB forums to wordpress page
- how do i make the “contact us” on a page created not to display
- Where this validating message come from?
- How to add custom regex validation to WPForms password field
- Form Post / Session Variables not Working in Query with Pagination
- Submit Multi-Part Form After Each Part
- Populate a custom form with user data [closed]
- Not receiving any sign up mail, when user registers… Both admin & user
- How to redirect a Link to a new tab in contact form 7?
- How to auto-generate random numbers in username?
- I need to verify emails when users signup
- Reading POST over admin-ajax.php
- Auto Submit Contact Form 7
- Generating unique PDF download link after user input
- How can I automatically send an email with an excel file containing submissions for a form rather than an email per submission?
- WordPress Form To Email.php and Theme
- Passing input value into name of input
- Allow users to register as a higher role than default with code
- wp_insert_post with POST data
- Auto populate a Form
- Dynamic price for payment button
- Forms lead to “Page not found” in Ultimate Member plugin
- How to use tag in wordpress?