Can I (and should I) change the login-URL from functions.php?
You should change the login url from default than it’ll hard for hackers to find the login page so it’ll be safe for you. Here is the code to change the url. // Add rewrite rule and flush on plugin activation register_activation_hook( __FILE__, ‘NLURL_activate’ ); function NLURL_activate() { NLURL_rewrite(); flush_rewrite_rules(); } // Flush on plugin … Read more