You could do something like this:
<?php
add_action( 'register_form', function() {
$get_type = filter_input( INPUT_GET, 'type', FILTER_SANITIZE_STRING );
if ( ! $get_type ) {
return;
}
?>
<input type="hidden" name="type" value="<?php echo esc_attr( $get_type ); ?>" />
<?php
});
This will add the type
parameter as a hidden field on the form if it is set in the GET query string.
Related Posts:
- How To Change Wp Register/Login URL Permanently To My Custom Page
- How to modify the action attribute of the wp-login.php?action=register form?
- WordPress registration page template
- Separate registration and login for different roles
- SSO / authentication integration with external ‘directory service’
- How to prefill WordPress registration with social details
- Check for correct username on custom login form
- Woocommerce registration page [closed]
- Is it possible to sign in with user_email in WordPress?
- WordPress registration message
- How to remove the WordPress logo from login and register page?
- Login email after registration never sent or received
- I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
- How do I check if a post is private?
- Receiving “This content cannot be displayed in a frame” error on login page
- My login form does not work
- How to customise wp-login.php only for users who are setting a password for the first time?
- What hooks should I use for pre-login and pre-registration actions?
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- Problem with logging in WP users automatically
- Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
- How can i add validation to this login form with out it redirecting to the wp-login.php page
- Register/Login using only phone number?
- Force users to register in order to view website [duplicate]
- How do I force “users must be registered and logged in” on subsites?
- auto login after registeration for wp-members plugin
- How can I do a URL redirection when an user uses wrong login details?
- Correct passwords keep appearing as incorrect
- Disabling standard registration login with username/email and password?
- Login form doesn’t log in
- Get the url of custom login page in the registration page
- By registering always make uppercase the first letter of the login
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Best option to implement external register/login to WP from self-made API
- Auto Login After Registration
- Disable all other page except index,register,login till user login
- Changed Wordress Address URL Accidently
- easy steps to make front end form without plugin
- Redirecting after login?
- What speaks against using a custom login.php / register.php to wordpress?
- How do I add Login fields and registration link to the header?
- Sidebar login widget with error print, returns an error
- How to make a user be able to register if such a login already exists?
- How can I insert wordpress login screen on a different domain?
- Change default login auth
- Sending new registration meta values to admin by email
- Custom login and registration forms
- Are login functions considered part of the WP backend?
- Removing “public” user registration without completely turning it off?
- Disable registration on certain condition
- what is the best and safest way to allow users to register to site
- Linking form to user meta fields
- Updated : how to make email optional while user registration using default wordpress form
- How to post frontend login form to a different authentication script from wp-login?
- Problem in auto login after registration
- How to invalidate `password reset key` after being used
- wp_signon works localhost but not wokrs https site
- redirect_to not Including Hashtag from URL
- Updating usermeta from login redirect to billing address
- How to Create a login for for subscribers only
- Chosen user password in registration is not being accepted on Login
- WordPress auto login user after registration only from a specific page
- User account activation links are lacking query strings
- How can I customize the content of the login page?
- Login user after registration programmatically
- Remember me doesn’t work with www?
- How to get rid of the username of registration form in theme my login wp plugin?
- Where do I find “log in” and “register” link which are located on the top right corner?
- How to force login after user browses for a few minutes or browses a few pages?
- Registration and Login form
- WordPress and Magento: let WordPress manage user registration and logins?
- authenticate to another site using a login form on my site
- Trim the repeated value in URL
- how to add custom word press regisration form in word press 3.5 with out module [closed]
- Click on banner to register to the blog
- How to put Login, Register and newsletter widget on the same page?
- make a login system for site visitors
- How to create a fully functional user registration in WordPress?
- Adding extra authentication field in login page
- Customize wp_new_user_notification_email()
- Need to execute a cron job
- How to create custom LOGIN and REGISTRATION forms?
- How can I automatically login using a URL?
- Pre checking condition before login
- Session Experies and Get Logged Out Within Few Minutes
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- Two factor authentication
- Require login for specific templates
- WordPress Logout Problem [closed]
- One time login on 2 different WordPress sites
- Using custom IDP with WP
- Custom user roles are unable to login
- Log in only by email and no username
- Issues adding Recaptcha v3 to WordPress Registration
- Modify wp-login.php Labels Conditionally Based On Referring URL
- confirmation email is send from my local host registration of a user but mail will not display in there email account?
- Server error after log in
- Custom user fields validation on registration
- How to go to tag archives using a form
- wp_usermeta key problem