WP_Recovery_Mode::exit_recovery_mode

Advertisement

Summery Summery

Ends the current recovery mode session.

Syntax Syntax

WP_Recovery_Mode::exit_recovery_mode()

Return Return

(bool) True on success, false on failure.

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.