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.

functions.php

///////////
// 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;
  }
  </style>
   <?php
}
add_action( 'login_enqueue_scripts', 'uwp_login_no_register' );

.htaccess

#BLOCK SPAM REGISTRATION REQUESTS (wp-login.php?action=register)
#https://wordpress.stackexchange.com/questions/115772/stop-spam-users-from-registering-without-disabling-user-registration/170233
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*(wp-login.php\?action=register).* [NC]
RewriteRule ^(.*)$ - [F,L]
</IfModule>