/** * Remove the register link from the wp-login.php script * https://wphelper.site/remove-register-link-wordpress-login/ */ add_filter('option_users_can_register', function($value) { $script = basename(parse_url($_SERVER['SCRIPT_NAME'], PHP_URL_PATH)); if ($script == 'wp-login.php') { $value = false; } return $value; });
Dr. Christy Olloh, DNP, RNP, PMHNP-BC

Dr. Christy Olloh has been in the Nursing profession for over 15 years. Several years ago, she walked away from bedside nursing, stopped being a complainer and became a change agent in the mental health arena. She is very passionate about mental health and help encourage other Nurses to find their passion.