WP_Recovery_Mode::exit_recovery_mode(): bool

Ends the current recovery mode session.


Return

bool True on success, false on failure.


Top ↑

Source

File: wp-includes/class-wp-recovery-mode.php. View all references

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
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.