WP_Recovery_Mode_Cookie_Service::is_cookie_set()publicWP 5.2.0

Checks whether the recovery mode cookie is set.

Method of the class: WP_Recovery_Mode_Cookie_Service{}

No Hooks.

Return

true|false. True if the cookie is set, false otherwise.

Usage

$WP_Recovery_Mode_Cookie_Service = new WP_Recovery_Mode_Cookie_Service();
$WP_Recovery_Mode_Cookie_Service->is_cookie_set();

Changelog

Since 5.2.0 Introduced.

WP_Recovery_Mode_Cookie_Service::is_cookie_set() code WP 6.5.2

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