wp_maintenance ( No parameters )

  • private
Defined at:


Die with a maintenance message when conditions are met.

Checks for a file in the WordPress root directory named ".maintenance". This file will contain the variable $upgrading, set to the time the file was created. If the file was created less than 10 minutes ago, WordPress enters maintenance mode and displays a message.

The default message can be replaced by using a drop-in (maintenance.php in the wp-content directory).

Related Functions

maintenance_nag, wp_create_nonce, wp_explain_nonce, wp_basename, wp_authenticate

Top Google Results

User discussions

wpseek mobile