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.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |