WP_Recovery_Mode_Cookie_Service::get_session_id_from_cookie

Advertisement

Summery Summery

Gets the session identifier from the cookie.

Syntax Syntax

WP_Recovery_Mode_Cookie_Service::get_session_id_from_cookie( string $cookie = '' )

Description Description

The cookie should be validated before calling this API.

Parameters Parameters

$cookie

(string) (Optional) y specify the cookie string. If omitted, it will be retrieved from the super global.

Default value: ''

Return Return

(string|WP_Error) Session ID on success, or error object on failure.

Source Source

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


			

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.