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?
- Can’t access wordpress mgt dashboard until propogation finished?
- Action wp_login_failed not working if only one field is filled out
- Intentionally Force Failed Login WordPress
- Is back-end access not required for an app to post to my blog?
- Protecting WordPress login page
- reset password link redirect to login page
- How to redirect after login getting a variable from url (for example with the language)
- SSO to WP, from a non-wp site on a different domain and server
- Login with serialized password
- define two login page url
- I can’t access my wp-admin dashboard
- WordPress – Users with contact form on profile
- My wordpress site crashes when I login!
- End session screen not close automatically after login
- Unable to login with email address as the username – WordPress
- Insert user register into my own user table instead of wp own user
- External Authentication
- Does wp_login hook fire on user registration?
- Browser Caching for Logged in Users
- how to login admin by using ip address
- Login form- no feedback
- Profile Builder Plugiin – how to add customize Login form fields?