Renaming tables is only half of a prefix change. WordPress also stores some keys that contain the prefix itself. If they are not updated, users lose their roles and administrators can be locked out of wp-admin.
The keys involved
- In the options table:
{prefix}user_roles, which defines every role and its capabilities. Some plugins also store prefix-named options. - In the usermeta table:
{prefix}capabilitiesand{prefix}user_levelfor every user.
For example, changing from wp_ to wpsecure_ means wp_capabilities must become wpsecure_capabilities.
What Aegisify Shield does
When you apply a prefix change, the DB Prefix Manager:
- Renames the affected tables.
- Updates the prefix-bound option keys.
- Updates the prefix-bound usermeta keys.
- Updates
wp-config.phpautomatically if it is writable, or shows the exact line to add manually.
The result screen reports tables renamed, options keys updated, usermeta keys updated, and the backup used.
Verify afterward
Run the read-only Verification Scan, which confirms required core tables exist under the new prefix, no critical tables remain on the old one, and no old prefix-bound option or usermeta keys remain.
Related: Preview and dry run, Database prefix manager.
