wp_is_recovery_mode() WordPress Function
The wp_is_recovery_mode() function is used to check if the WordPress site is in recovery mode. This function is useful for checking if a site is in maintenance mode or if it is being updated.
wp_is_recovery_mode() #
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
function wp_is_recovery_mode() { return wp_recovery_mode()->is_active(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |