WP_Recovery_Mode::exit_recovery_mode() public WP 5.2.0
Ends the current recovery mode session.
{} It's a 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. |
Code of WP_Recovery_Mode::exit_recovery_mode() WP Recovery Mode::exit recovery mode WP 5.6
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;
}