WP_Recovery_Mode::exit_recovery_mode()

Ends the current recovery mode session.

Return

(bool) True on success, false on failure.

Source

File: wp-includes/class-wp-recovery-mode.php

public function exit_recovery_mode() {
		if ( ! $this->is_active() ) {
			return false;
		}

		$this->email_service->clear_rate_limit();
		$this->cookie_service->clear_cookie();

		wp_paused_plugins()->delete_all();
		wp_paused_themes()->delete_all();

		return true;
	}

Changelog

Version Description
5.2.0 Introduced.

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