There’s a “Membership” setting under Settings > General. By disabling “Anyone can register” the public-facing registration page will be effectively removed, along with the ‘register’ button.
The API, however, will still be usable (e.g. wp_create_user()
.)
On a side note, you mention
NOTE: I’m working in a plugin already, so I cannot just use another plugin as it is bad practice
If you mean, you’re creating a plug-in for distribution and don’t want a third-party dependency, that’s understandable. But in general there is nothing wrong in using multiple plug-ins to achieve a desired result.
Related Posts:
- Separate registration and login for different roles
- SSO / authentication integration with external ‘directory service’
- How to prefill WordPress registration with social details
- Woocommerce registration page [closed]
- 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
- 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?
- Change register form action url
- Problem with logging in WP users automatically
- Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
- 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 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?
- 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
- What speaks against using a custom login.php / register.php to wordpress?
- How do I add Login fields and registration link to the header?
- How to make a user be able to register if such a login already exists?
- Sending new registration meta values to admin by email
- Are login functions considered part of the WP backend?
- WordPress registration page template
- Disable registration on certain condition
- what is the best and safest way to allow users to register to site
- Updated : how to make email optional while user registration using default wordpress form
- Problem in auto login after registration
- How to invalidate `password reset key` after being used
- Updating usermeta from login redirect to billing address
- 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
- Login user after registration programmatically
- 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?
- 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?
- Disable WordPress 3.6 idle logout / login modal window / session expiration
- How to pass users back and forth using session data?
- Change sign-on URLs for security purposes
- Can’t stop hacker trying to get admin access in WordPress blog after trying many ways [closed]
- Hook for fail and successful login actions
- How long do users stay logged in if they DON’T check remember me?
- Mobile users redirected to a different page on login unless linked to another post
- Bootstrap Modal as login page
- Passing username to login screen
- Sniffing wordpress user’s credentials
- How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
- Share WordPress login info with other PHP app
- Facebook login for private group members
- WordPress c-panel login error [closed]
- Login/Register redirect user with message
- Locked Out Of WordPress, Can’t Reset Through PHPMyAdmin
- Facebook and WordPress
- How can I redirect wp-login.php but still allow logout and other actions?
- Can not login to wordpress site after resolving white screen of death
- WordPress on localhost (LAMP) – Can’t login, just redirects to wp-login.php
- WordPress “wp-admin” redirecting to a user account login
- I renamed my server from http to https and now I can’t login
- https to https problem – 404 and can’t login
- wordpress login without password just email address (NO 2 factor authentication with email)
- Does WordPress have built in brute force protection?
- Hide Author page from others
- wp_login_url not working correctly
- Cannot Get User id after login success in file wp_login.php
- authenticate user without redirecting
- Logging in to the frontend works correctly but not for WP-Admin
- Make an order of products without login
- Bypass login page
- After moving WordPress to its own directory, login doesn’t work
- WordPress login is not showing , there is warning?
- WordPress Redirect After logging
- Login problem with https
- How to Create a login for for subscribers only
- Custom Field For Login
- wp_lostpassword_url not escaped
- Trim the repeated value in URL
- Warning: session_start(): Cannot send session cookie – headers already sent by
- Username character requirements
- Users cannot log in using popup
- Must Log In to Visit Site [duplicate]