WP_Recovery_Mode::get_session_id() WordPress Method
The WP_Recovery_Mode::get_session_id() method is used to retrieve the session id for the current user. This can be useful for verifying the authenticity of a user.
WP_Recovery_Mode::get_session_id() #
Gets the recovery mode session ID.
Return
(string) The session ID if recovery mode is active, empty string otherwise.
Source
File: wp-includes/class-wp-recovery-mode.php
public function get_session_id() {
return $this->session_id;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |