Core Class
View Source on Trac ↗
Core Class
WP_Recovery_Mode_Cookie_Service
class WP_Recovery_Mode_Cookie_Service
// Constructor: function Object() { [native code] } Core class used to set, validate, and clear cookies that identify a Recovery Mode session.
Methods 8 methods
| Method / Return | Description |
|---|---|
| is_cookie_set() bool | Checks whether the recovery mode cookie is set. |
| set_cookie() void | Sets the recovery mode cookie. |
| clear_cookie() void | Clears the recovery mode cookie. |
| validate_cookie() (true | Validates the recovery mode cookie.
Parameters: $cookie: mixed |
| get_session_id_from_cookie() (string | Gets the session identifier from the cookie.
Parameters: $cookie: mixed |
| parse_cookie() (array | Parses the cookie into its four parts.
Parameters: $cookie: mixed |
| generate_cookie() string | Generates the recovery mode cookie value. |
| recovery_mode_hash() (string | Gets a form of `wp_hash()` specific to Recovery Mode.
Parameters: $data: mixed |
Class Information
Since Version
5.2.0
Source File
wp-includes/class-wp-recovery-mode-cookie-service.php
Advertisement