WP_Recovery_Mode_Cookie_Service::generate_cookie

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

SummerySummery

Generates the recovery mode cookie value.

Syntax

WP_Recovery_Mode_Cookie_Service::generate_cookie()

DescriptionDescription

The cookie is a base64 encoded string with the following format:

recovery_mode|iat|rand|signature

Where "recovery_mode" is a constant string, iat is the time the cookie was generated at, rand is a randomly generated password that is also used as a session identifier and signature is an hmac of the preceding 3 parts.

ReturnReturn

(string) Generated cookie content.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.2.0 Introduced.
Scroll to Top