WP_Recovery_Mode::is_active() WordPress Method
The WP_Recovery_Mode::is_active() method is a static method that checks whether the WordPress site is in recovery mode or not. This is useful for plugins and themes that need to know whether to display recovery mode content or not.
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |