WP_Recovery_Mode_Cookie_Service::is_cookie_set

Advertisement

Summery Summery

Checks whether the recovery mode cookie is set.

Syntax Syntax

WP_Recovery_Mode_Cookie_Service::is_cookie_set()

Return Return

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

Source Source

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

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?