Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

How to Put Your WordPress Site in Read Only State for Site Migrations and Maintenance

Last updated on by
Follow WPBeginner on YouTube
How to Put Your WordPress Site in Read Only State for Site Migrations and Maintenance

Managing a multi-author blog is a hard task on its own. It gets even harder during the maintenance times and site migrations. We have helped migrate numerous multi-author blogs to different hosting account, and the single biggest challenge was to keep everyone from making any new changes. We had to notify everyone multiple times to make sure that everyone got the memo. Well, recently we discovered a way to put WordPress in a Read-Only state which essentially freezes your entire site for all users on the backend. Meaning no changes are allowed thus making the maintenance and migrations much smoother.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

First thing you have to do is install and activate the Code Freeze Plugin. Upon activation it shows a warning on all pages saying “Code Freeze is in effect. All Changes during this period will be lost”.

Code Freeze Screenshot

The plugin temporarily does the following while activated:

  • Disables adding/editing/deleting new content, media, themes, etc.
  • Disables installing/activating/deactivating/updating/deleting all plugins (except this one)
  • Disables new comments/trackbacks on all content items
  • Removes the QuickPress widget and notices to upgrade core or plugins
  • Provides notice to dashboard users that any changes will be lost
  • Provides generally “read only” access to the dashboard

Note: the only plugin you can deactivate is Code Freeze while the Code Freeze is activated.

This plugin is essential when you start the data migration process as well as when you are changing DNS. This plugin does not make any database or site changes. It also has no settings. It is definitely going in our MUST HAVE for moving a site.

Get Code Freeze Plugin.


Editorial Staff at WPBeginner is a team of WordPress lovers led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »
  • Kevin

    Thanks for writing on this plugin. I wondered if such a thing would be generally useful and I’m glad to see that, even if its use remains rather niche, it is useful to some people.