wp_is_recovery_mode()WP 5.2.0

Determines whether WordPress is in Recovery Mode.

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

No Hooks.

Returns

true|false.

Usage

wp_is_recovery_mode();

Changelog

Since 5.2.0 Introduced.

wp_is_recovery_mode() code WP 6.8.1

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