On this page
wp_is_recovery_mode(): bool
Is WordPress in Recovery Mode.
Description
In this mode, plugins or themes that cause WSODs will be paused.
Return
bool
Source
File: wp-includes/load.php. View all references
function wp_is_recovery_mode() {
return wp_recovery_mode()->is_active();
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Recovery_Mode::is_active() wp-includes/class-wp-recovery-mode.php | Checks whether recovery mode is active. |
| wp_recovery_mode() wp-includes/error-protection.php | Access the WordPress Recovery Mode instance. |
Used By
| Used By | Description |
|---|---|
| WP_Fatal_Error_Handler::display_default_error_template() wp-includes/class-wp-fatal-error-handler.php | Displays the default PHP error template. |
| wp_admin_bar_recovery_mode_menu() wp-includes/admin-bar.php | Adds a link to exit recovery mode when Recovery Mode is active. |
| wp_recovery_mode_nag() wp-admin/includes/update.php | Displays a notice when the user is in recovery mode. |
| wp_get_active_and_valid_themes() wp-includes/load.php | Retrieves an array of active and valid themes. |
| login_header() wp-login.php | Output the login page header. |
| deactivate_plugins() wp-admin/includes/plugin.php | Deactivates a single plugin or multiple plugins. |
| switch_theme() wp-includes/theme.php | Switches the theme. |
| wp_get_active_and_valid_plugins() wp-includes/load.php | Retrieve an array of active and valid plugin files. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_is_recovery_mode