Hide links
-
Hi. I am using the following code to hide the “register” link on my login-page:
/**
* remove the register link from the wp-login.php script
*/
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;
});How do I need to change it, if I rename my login page, e.g. to “user-login”?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Hide links’ is closed to new replies.