WordPress后台因已停用的Clef插件无法登录,如何移除该双因素验证?
How to Remove the Clef Plugin When It Blocks WordPress Admin Access
Alright, let's fix this frustrating Clef plugin issue—since it shut down back in 2017, its broken "loading clef login" screen is locking you out of your WordPress admin. Here are two solid methods to get rid of it:
Method 1: Disable via FTP/Host File Manager (Easiest & Most Recommended)
This is the simplest approach, no database tweaks required:
- Log into your web host's control panel (like cPanel) and open the File Manager, or connect to your server using an FTP tool (e.g., FileZilla).
- Navigate to the
wp-content/pluginsdirectory in your WordPress installation. - Locate the folder named
clef—rename it to something likeclef-disabled(any name works as long as it's not the original). - Head back to your WordPress login page: the Clef plugin will be automatically disabled, and you can log into the admin dashboard normally. Once inside, you can delete the renamed
clef-disabledfolder permanently from the Plugins menu.
Method 2: Disable via Database (If FTP Access Isn't Available)
If you can't access FTP, you can tweak the WordPress database to deactivate Clef:
- Log into your web host's control panel and open phpMyAdmin.
- Select your WordPress database from the left sidebar (it’ll have a name matching your site, often with a
wp_prefix). - Find and click on the
wp_optionstable (the prefix might differ if you changed it during setup). - Use the search bar to look for the
option_namevalueactive_plugins. - Click the Edit button next to this entry. You’ll see a serialized array of active plugins.
- Locate the line that reads
clef/clef.phpand remove it—make sure to adjust the array count at the start (e.g., if it wasa:3:{...}and you remove one plugin, change it toa:2:{...}) to avoid breaking the serialization. - Save your changes, then return to your WordPress login page. You should now be able to log in without the stuck Clef loading screen.
Quick Notes
- Always back up your database before making edits—this prevents accidental data loss if something goes wrong.
- Once you’re back in the admin, consider switching to a maintained 2FA plugin (like Google Authenticator) if you still want two-factor authentication for your site.
内容的提问来源于stack exchange,提问作者Amir Vafaei
相关产品推荐
相关产品推荐

