How to Schedule Maintenance Mode for your WordPress Site

John Turner founder of SeedProd Posted by John Turner on January 9, 2017

Last updated on: May 3, 2018

So I’ve had many request from users of my Coming Soon and Maintenance Mode plugin on how to automate the enabling and disable of maintenance mode so it could be scheduled. Up until recently I’ve only allow users to set a countdown and have your coming soon or maintenance mode page disable automatically when it reached zero but there has been never been a way to schedule maintenance mode on an ongoing basis.

The countdown autolaunch feature worked in those situations when you wanted to launch your site at a specific date time but did not work for those instances where you needed to put WordPress into maintenance mode to perform some business procedure or update.

With the release of Coming Soon Page Pro 5.4.0 I’ve added to new url end points in the plugin that can be pinged manually, by cron or by a remote  service to automatically put your WordPress site into Maintenance Mode.

Let me show you how it works. What you want to do is composer a url like the examples below. Pass in your License Key and mode and this will automatically put your site into one of the modes listed below.

// Disable Coming Soon or Maintenance Mode
http://wordpress.dev/?seed_cspv5_token=LICENCE_KEY&seed_cspv5_mode=0

// Enable Coming Soon Mode
http://wordpress.dev/?seed_cspv5_token=LICENCE_KEY&seed_cspv5_mode=1

//Enable Maintenance Mode
http://wordpress.dev/?seed_cspv5_token=LICENCE_KEY&seed_cspv5_mode=2

What’s great about this is you can manually enter this url, create a cron job on your local server to run on a schedule or use a 3rd party service like http://cronless.com/ or https://zapier.com to ping the url to meet your needs.

I’m also considering adding WP-CLI support. Let me know if you’d like to see a package for WP-CLI.

John Turner founder of SeedProd

By John Turner

John is the founder of SeedProd.com and a WordPress Developer with over 15 years of development experience.

Made with in Charleston, SC USA

Copyright © 2019 SeedProd LLC
Terms & Conditions | Privacy Policy | SeedProd Coupon Code