WP_Recovery_Mode::is_active()

Checks whether recovery mode is active.

Description

This will not change after recovery mode has been initialized. WP_Recovery_Mode::run().

Return

(bool) True if recovery mode is active, false otherwise.

Source

File: wp-includes/class-wp-recovery-mode.php

public function is_active() {
		return $this->is_active;
	}

Changelog

Version Description
5.2.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_recovery_mode/is_active