wp_recovery_mode() WordPress Function
The wp_recovery_mode() function enables recovery mode for a Wordpress site. This function can be used if a site is experiencing problems and needs to be taken offline for maintenance. Recovery mode will display a message to visitors informing them that the site is down for maintenance.
wp_recovery_mode() #
Access the WordPress Recovery Mode instance.
Return
Source
File: wp-includes/error-protection.php
function wp_recovery_mode() {
static $wp_recovery_mode;
if ( ! $wp_recovery_mode ) {
$wp_recovery_mode = new WP_Recovery_Mode();
}
return $wp_recovery_mode;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |