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.


Top ↑

Source

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

	public function get_session_id() {
		return $this->session_id;
	}


Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.