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().


Top ↑

Return

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


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.