WP_Recovery_Mode::exit_recovery_mode()
Ends the current recovery mode session.
Method of the class: WP_Recovery_Mode{}
No Hooks.
Return
true|false
. True on success, false on failure.
Usage
$WP_Recovery_Mode = new WP_Recovery_Mode(); $WP_Recovery_Mode->exit_recovery_mode();
Changelog
Since 5.2.0 | Introduced. |
WP_Recovery_Mode::exit_recovery_mode() WP Recovery Mode::exit recovery mode code WP 6.3
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; }