How To Disable The WordPress Register Text And Registration Page

If you are using a plugin or other method to register users other than the standard registration page, you can disable the “Register” text on the login form and redirect users trying to access your wp-login.php?action=register page by adding the following to your functions.php file and the redirect code to your .htaccess file.


// Remove "Register" text from login page using CSS
function uwp_login_no_register() {
  <style type="text/css">
  .login #nav {
  font-size: 0 !important;

  .login #nav a:nth-child(1){
  font-size: 0;
  .login #nav a:nth-child(2){
  font-size: 13px;
add_action( 'login_enqueue_scripts', 'uwp_login_no_register' );


#BLOCK SPAM REGISTRATION REQUESTS (wp-login.php?action=register)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*(wp-login.php\?action=register).* [NC]
RewriteRule ^(.*)$ - [F,L]