WordPress at a glance
function is not described

wp_is_recovery_mode() WP 5.2.0

Is WordPress in Recovery Mode.

In this mode, plugins or themes that cause WSODs will be paused.

No Hooks.

Return

true|false. Null. Nothing.

Usage

wp_is_recovery_mode();

Changelog

Since 5.2.0 Introduced.

Code of wp_is_recovery_mode() WP 5.7

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