There might be more elegant way to do it, but from quick look at the code it seems quite easy to simply override the relevant option on login page:
add_action( 'login_init', function () {
add_action( 'pre_option_users_can_register', '__return_null' );
} );
Related Posts:
- Function like is_registration_page to check if current page is registration page
- Send custom signup approval email to different Administrators selectively
- How to bypass the username as a required field in registration and just use email address instead?
- How to add user registration and signup in WordPress and create members only page?
- signup_user() throws fatal error
- Multisite/Network What file to edit to change the “new blog” registration text
- wp-signup.php example template
- A conditional button
- How can I be certain that a user has verified their email after registration?
- Placeholder text for registration form
- Use the user_activation_key for other purposes
- How to check if the user registration is allowed/active?
- how to disable user confirmation from administration?
- Custom registration form page/template
- Insert “New User” and update/set meta data at once
- Send automatic email to user after wp_create_user
- Custom Registration Template/Page
- How to disable or protect against disposable email accounts?
- Registration key
- User defined password at registration – registration email sends auto generated pass
- Advice on setting up a site with front end registration
- How to add a description to the user name input field in the registration form?
- How to add a checkbox to registration and user profile?
- Payment on Registration?
- White spaces in username give 404 on author page
- WordPress members-only page with link visible only to members
- How do I show errors after validation with a custom form frontend?
- How can I find users that didn’t set a password?
- How to allow more than one registered user to have the same email?
- After e-junkie payment, send a http post to register user automatically?
- Email confirmation in user registration form without a plugin
- How to add additional information to a user on user creation?
- Invalid key on activation and password reset
- Where are people registering on my website?
- How to disallow user to register with a specific word in the username?
- How can I have user registration verify a whether a new user is listed in a table of pre-approved users?
- Change User Registration
- Correct passwords keep appearing as incorrect
- Creating custom registration and login link in wordpress
- Adding register & login at top right corner
- Restrict certain character combinations in username during registration
- Register users without confirmation
- Include “registration.php” for custom registration form?
- Custom registration form with different registration process based on what’s selected
- can registration be enabled programatically?
- register user only with specific Host name
- Generate long hashed user ID
- Disable New User Registration Email sent to WordPress admin email on 4.9.5
- my custom css file downloads then it STOPS!
- Filter for users on custom post type
- How to change a user role after registering in multisite?
- Registration area + reserved area
- I want to add a tax-ID field in registration form and upon submission, perform a lookup by tax-ID
- Please suggest me some plugins in WordPress networking
- wordpress – user registration ( signup registration )
- not sending correct link to set the password in registration email [closed]
- Disable password limitations
- How to integrate CAPTCHA on register page? [closed]
- wp_insert_user not returning anything
- New register email notification sending some fields blank on site admin emai id
- Profile picture in registration form WordPress [closed]
- Controller functionality – User not logged in/ redirect to registration page (not wp_login)
- Register multiple users in one form
- Register through url
- loading custom registration template
- Add ‘first name’, ‘last name’, ‘date of birth’ and ‘terms and conditions’ to register fields?
- How to show password fields on registration form w/o plugins
- Is there any way to not require email address or disable notification upon setting up a member?
- I want to remove the http:// that is added automaticly on the user profile adress
- Why is wp_new_user_notification not working?
- Single Sign On or Bridge with in the WordPress WebSites?
- Wikipedia – CMS
- remove (error:) from registration errors woocommerce
- Action Hook that fires function upon registration at Woocommerce checkout
- Redirection after registration
- My new website registration error
- Registration – website crashes, error 403
- I want to give every new registering user a unique key apart from password field for external use
- Is it possible to remove the password field in the registration page in woocommerce?
- Send a password to a user who has just registered for a member area
- The requested URL /wordpress/register/ was not found on this server
- I have restricted the username to numerical format but not able to integrate the same with PeepSo plugin
- Custom Registration with Select and Upload function
- Macros for WordPress, creating subdomains out of registrations for current domain
- How to make user to logged into website & redirect to homepage after successful registration?
- generate an auto incremented id number when a new user is registered
- Multisite “Skip Confirmation Email” Log Out Problem
- Remove wp-login link from auto generated wordpress’s email
- How do spam users register while I’ve only enabled registration by Gmail via Janrain?
- how to allow unregistred users to view normal posts [closed]
- Wrong user registration date in wordpress
- What hooks, actions or filters i can use to customize wordpress registration page and form?
- What plugin(s) are best for this User registration task? [closed]
- Can email address be used as user name?
- Website visible only to Registered users (non wp-admin)
- Plugin recommendation for directory site [closed]
- Fields in register page is pre-filled out with name and email
- Login to comment: not just user and email
- Limit username to specific characters (A-Z and 0-9)
- Change default error message “This email address is already in use” when registering a new user in WordPress using Caldera Forms