wp_is_maintenance_mode


wp_is_maintenance_mode ( No parameters )

Returns:
  • (bool) True if maintenance mode is enabled, false otherwise.
Defined at:

Description

Checks if maintenance mode is enabled.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 is in maintenance mode.

Related Functions

wp_maintenance, wp_is_recovery_mode, wp_set_internal_encoding, maintenance_nag, wp_is_development_mode

Top Google Results

User discussions

wpseek mobile