W3cubDocs

/WordPress

wp_recovery_mode()

Access the WordPress Recovery Mode instance.

Return

(WP_Recovery_Mode)

Source

File: wp-includes/error-protection.php

function wp_recovery_mode() {
	static $wp_recovery_mode;

	if ( ! $wp_recovery_mode ) {
		$wp_recovery_mode = new WP_Recovery_Mode();
	}

	return $wp_recovery_mode;
}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_recovery_mode