You can use my WP Login Flow plugin to setup this up, or since it’s open source use it as a reference for how to do it yourself.
https://github.com/tripflex/wp-login-flow
https://wordpress.org/plugins/wp-login-flow/
Specifically here’s the register.php file:
https://github.com/tripflex/wp-login-flow/blob/master/classes/register.php
Related Posts:
- On local machine can’t log in or reset password but I can log in on the live version, user has activation key in database
- Must activation/deactivation functions in a class be static?
- Viewing output when the “The plugin generated x characters of unexpected output during activation” error is triggered
- Problem creating a table with dbDelta
- Add update services on theme activation
- WooCommerce: “account is already registered with your email address”
- Use an activation code to change a role [closed]
- Only allowing some emails to create an account [closed]
- Resend user activation mail
- Email Woocommerce customer a link to login and set a password for their automatically created account
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- How To Activate Plugins via Code?
- Activate a plugin through PHPMyAdmin or FTP?
- How to redirect to settings page once the plugin is activated?
- How to check if a theme is active?
- How to run an activation function when plugin is network activated on multisite?
- How to output message during plugin activation
- Prevent network activation of plugin
- Inserting Taxonomy Terms During a Plugin Activation?
- Import WordPress XML File from Within Functions.php
- Mass registrations on my blog. Disable specific domain?
- How can I be certain that a user has verified their email after registration?
- Does wordpress create activity, update logs?
- Customizing wp-activate.php
- How to Modify/Change a Buddypress/WordPress Account Activation Process
- Pluggable function and activation check?
- Give to site admin the option to “skip confirmation email” when adding new user
- How to set up User email verification after Signup?
- __NAMESPACE__ with register_activation_hook
- Create un-removeable user
- How to manually activate user in dashboard only by admin
- Login email after registration never sent or received
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- How to discover and delete unused accounts?
- Using wp_cron with custom time interval and the register activation hook
- Is it possible to stop a theme activation when a certain plugin is not activated
- Send activation email to user after signup [duplicate]
- Multisite: setting theme and options when a new blog is created
- Function to activate WordPress theme inside a plugin
- wp_insert_user – how to send verification email before logging in
- Can’t add user to blog on registration (Multisite)
- Call activation hook multiple times
- Redirect after User Activation [closed]
- Display sortable User meta column in admin panel user’s page
- Activate Plugin which is in subfolder?
- Only allow plugin to be activated on root site of multisite
- use query var argument as verification link?
- wpmu_signup_user_notification filter not working
- explanation for activate_plugin function in wordpress core
- Remote plugin activation hook
- Register theme customizer settings when theme activates [duplicate]
- why creating tables using $wpdb is not being executed while installing plugins?
- Ask user permission when activating a plugin
- Force plugin to fail activation
- Override pluggable functions in a plugin?
- Plugin activation error due to unexpected output
- WordPress is executing URL in code when called via wp_mail()
- How to display public user profile with 2 additional fields? (GitHub source code included)
- WordPress register_activation_hook table creation not working
- Multisite: Activate plugin for subsites only?
- Customize user account activation message
- The plugin generated x characters of unexpected output, $wpdb not defined
- Correct way to use register_activation_hook
- Validate a users email address when using gmail to register
- How to Add Author Editing Capability to Existing Post by Admin
- Cannot run the code after I activate the plugin
- How to create a page when a theme is activated?
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- Settings not set after calling register_setting()
- Unable to activate wordpress importer after installing it
- Send Email to Users after Deleting Account
- I’m receiving requests to change the admin email. How can this be happening?
- How to include plugin without activation?
- Unexpected Output: register_activation_hook with namespace
- Auto add content such as pages upon plugin activation?
- Disable the administration email address verification (new in 5.3)
- Detect when any plugin is activated or deactivated
- How to automate wordpress plugin activate and deactivate by php logic?
- How to add custom menu item on plugin activation?
- Comments deactivated
- Default Plugin Settings Not Writing to Database
- is_plugin_active() not properly returning true
- Add email addresses to already registered users
- Email confirmation in user registration form without a plugin
- How to properly setup an activation hook
- Plugin won’t activate – cannot declare class (already in use)
- How to use same email for multiple users in Multisite version 4.7
- Plugin Deactivate Self on Activation Errors
- How to activate plugins for my WordPress sites from a remote server
- register_activation_hook with include file [closed]
- WordPress Add New User – Send an Activation Email
- Two admins in Users and one in the database?
- SQL Query to Update Admin Email
- Prevent a plugin from being automatically activated
- Only allowing some email addresses to create an account
- What’s wrong with Customizing new user notification email by add_filter?
- Is any information available in PHP files in WP about plugin activation history?
- WP-API user email change confirmation
- Best way to tell if a user account is active, using the database only