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.


Top ↑

Return

(bool)


Top ↑

Source

File: wp-includes/load.php

function wp_is_recovery_mode() {
	return wp_recovery_mode()->is_active();
}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.