Pause form submissions while upgrading plugins

There are a couple of ways to check if wordpress is actively running the core upgrade process. First, you could check the WP_INSTALLING constant, or use the wp_installing() function.

WordPress will also utilize a .maintenance or maintenance.php file if you’d like to present any custom messages to users while the upgrade process is happening. Here is an example that goes beyond WordPress’s sparse documentation on the topic.