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?
- Replace the “wp-admin” in the URL with “xyz-admin” in WordPress dashboard
- Can’t access wordpress mgt dashboard until propogation finished?
- In Django, how do I know the currently logged-in user?
- Check if wp-login is current page
- Can I programmatically login a user without a password?
- How to display user registration form on front-end of the website?
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- Is there any way to rename or hide wp-login.php?
- How to login with email only no username?
- How can I redirect user after entering wrong password?
- Increase of failed login attempts, brute force attacks? [closed]
- Login page ERROR: Cookies are blocked due to unexpected output
- Redirect user to original url after login?
- Preventing session timeout
- What is an easy way to display a front-end user registration form?
- How reduce wordpress login session timeout time?
- Disallow user from editing their own profile information
- I can’t access my site via wp-admin
- ‘Password field is empty’ error when using autofill in Chrome
- Removing username from the ‘wordpress_logged_in’ cookie
- How to show ‘login error’ and ‘lost password’ on my template page?
- What is $interim_login?