Locked Out of WordPress After Changing Login URL?

5 min readUpdated 24 March 2026

If you have forgotten your custom login URL, do not panic. You can recover access using WP-CLI, phpMyAdmin, or by temporarily disabling the plugin via FTP.

Method 1: Recover via WP-CLI (Fastest)

If your host provides SSH access or WP-CLI, this is the quickest method:

# Find your login slug
wp option get wp1cl_options --path=/path/to/wordpress

# Or reset the login slug to default
wp eval '$opts = get_option("wp1cl_options"); $opts["login_slug"] = "wp-login"; $opts["login_slug_enabled"] = 0; update_option("wp1cl_options", $opts);'  --path=/path/to/wordpress

Method 2: Recover via phpMyAdmin

  1. Log in to phpMyAdmin from your hosting control panel (cPanel, Plesk, etc.).
  2. Select your WordPress database.
  3. Open the wp_options table (your prefix may differ — look for the table ending in _options).
  4. Search for option_name = "wp1cl_options".
  5. Click Edit on that row.
  6. In the option_value field, find "login_slug" and change its value to "wp-login", and set "login_slug_enabled" to 0.
  7. Click Save.
  8. You can now log in at yoursite.com/wp-login.php.

Method 3: Disable the Plugin via FTP

  1. Connect to your server via FTP.
  2. Navigate to /wp-content/plugins/.
  3. Rename the wp1clicklockdown folder to wp1clicklockdown-disabled.
  4. WordPress will automatically deactivate the plugin.
  5. Log in at yoursite.com/wp-login.php.
  6. After logging in, rename the folder back to wp1clicklockdown and reactivate the plugin.
  7. Set a new, memorable login URL before re-enabling the custom URL feature.

Method 4: Ask Your Host

If you do not have FTP or database access, contact your hosting support and ask them to either give you database access or rename the plugin folder for you. Most hosts can do this within minutes.

⚠️

After recovering access, immediately write down your new custom login URL in a password manager or secure note. Never rely solely on memory for your login URL.

Was this article helpful?

Need more help? Contact our support team →

Ready to secure your WordPress site?

Install WP 1 Click LockDown and harden your site in under 60 seconds.