WP_Recovery_Mode::exit_recovery_mode() WordPress Method

The WP_Recovery_Mode::exit_recovery_mode() method is used to exit the recovery mode. This mode is used when the WordPress site is in an unstable state and needs to be fixed. This method can be used to fix the site by restoring the database or reverting the changes.

WP_Recovery_Mode::exit_recovery_mode() #

Ends the current recovery mode session.


Return

(bool) True on success, false on failure.


Top ↑

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;
	}


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.