You can use pre_user_login
filter to customize username when registered. Example.
add_filter( 'pre_user_login', 'wpse_customize_user' );
function wpse_customize_user( $username ) {
return 'tk_' . $username;
}
Related Posts:
- Send user activation email when programmatically creating user
- Email verification for new users
- Custom user profile, registration, login page with theme
- Why is the reset password key missing in the reset password email?
- Get the password key when using the wp_new_user_notification_email filter
- How to get the ID of the currently logged in user?
- Two functions utilizing registration_errors filter
- How to add custom fields to the all users page
- SMS registration and login [closed]
- Including the necessary functions for a custom ajax registration form
- user_register not triggering with email verification
- Activate User in Code (BuddyPress+bbpress)
- Email verification for new users
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- Associate multiple email addresses with the same user account, so they can log in with either
- How to make and save custom form in custom plugin page?
- Redirect User to custom URL after registering
- Allowing duplicating users with same user_login and user_email
- Using custom IDP with WP
- Problem in plugin debuging in wordpress
- Custom Registration Form and Passwords
- User Registration Moderate
- Registration form Plugin… Email confirmation
- first_name property missing inside register_user action hook
- Create Unique and Customized User ID for Website Members in WordPress
- How do I modify the error code array used by “shake_error_codes” filter?
- Making a user platform reachable by a qr code on a pin-back-button [closed]
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- No Error Log File, no debug info
- Strategies to implement selective loading of plugins
- Can someone explain what wp_session_tokens are, and what are they used for?
- How to Change the Entire WordPress Admin panel Look and Feel?
- Prevent notice and warnings in error_reporting?
- how to use thickbox in admin?
- lodash dependency in a Gutenberg plugin
- How does WordPress treat rewrite rules “under the hood”?
- How can I add/append content to the_content on the home page via a plugin?
- Plugin vs Settings load order (woocommerce dependency)
- What function to hook for changes made in status and visibility of a post
- How to not let a user with a new role edit users that have administrator role?
- Block: attributes not saving
- Callback function is being called twice
- async code or cron job?
- How to display a message about updates in the plugin list
- WordPress not working on localhost
- manage_posts_custom_column, showing serial number using increment in loop
- how to add custom functionality after woocommerce place order button
- Problems with: manage_${post_type}_posts_columns
- Make WordPress cache permanent for some pages until edited
- Getting timestamp of activation plugin time
- conditionally load javascript & CSS for do_action() calls from plugin
- How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)
- The plugin does not save data
- How do I create plugin or theme using MVC pattern?
- Create custom HTML/JS app inside page
- How to Get Current Custom Post Type Associated Taxonomy Term
- tinymce.get() returns error after ajax request
- Access bloginfo, get_option, and plugins_url from a non-core php file
- Upload multiple images and insert them into custom html code
- How to get a list of child ids for a named category?
- Plugin could not be activated because it triggered a fatal error, unexpected ‘[‘
- How to make the first commit on WordPress.org
- How best to handle database version dependence (from $wp_db_version)
- How to grab query string from wp-content/uploads/.*
- Custom filter not working
- ajax working when function is on child theme but not in plugin page
- I need to refresh page to display wp_get_current_user() : why?
- What is the way to hook all wordpress email
- Configure WordPress to Generate Scheme-less Relative URLs
- Best way to distribute templates and code accross multiple wordpress sites?
- Adding Dynamic Stylesheet
- WordPress templating system for custom plugins
- Lead form that submits to 2 external APIs
- Modify code for functions.php with specific twitter user url and hashtags
- Metabox is not displaying
- Proper way to do a page view count on a page?
- Catching a GET parameter from the URL and save it in the user meta when a user registers
- WP_Query not ordering correctly
- Custom User Role Preview Function Not Working
- get_the_date() returns english Year & Day when language is Arabic
- Where to save Gutenberg plugin data?
- Error when activating a custom plugin on production server
- Add new header/footer on landing page with plugin
- Publish, Save Draft and Preview buttons do not work after being moved with jQuery
- I can’t write in my DB using $wpdb->insert
- Multi hook deploiement
- Endpoint Callback Display for Custom Plugin
- Get Commentor IP When Marking Comment As Spam
- What is the use of wp_schedule_event hook?
- Displaying $_FILES data (simlar to $_POST)
- Plugin options page – save two related options as one entry
- Best practice to include custom user styles in widgets
- How to remove city field from order in dashboard?
- Sending Parameter Failed
- Invalid Menu Items
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Calling get_header() with installed FSE theme
- Reinitiate Gutenburg’s blocks using javascript
- Generating Multiple Divi Pages from Database