WP_Recovery_Mode_Cookie_Service::is_cookie_set() WordPress Method

The WP_Recovery_Mode_Cookie_Service::is_cookie_set() method is used to check if the WordPress recovery mode cookie is set. This cookie is set when the user initiates the WordPress recovery mode process.

WP_Recovery_Mode_Cookie_Service::is_cookie_set() #

Checks whether the recovery mode cookie is set.


Return

(bool) True if the cookie is set, false otherwise.


Top ↑

Source

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

	public function is_cookie_set() {
		return ! empty( $_COOKIE[ RECOVERY_MODE_COOKIE ] );
	}

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.