Warning: This method has been deprecated.

WC_Session_Handler::nonce_user_logged_out( int $uid )

When a user is logged out, ensure they have a unique nonce by using the customer/session ID.


Description Description


Parameters Parameters

$uid

(Required) User ID.


Top ↑

Return Return

(int|string)


Top ↑

Source Source

File: includes/class-wc-session-handler.php

	public function nonce_user_logged_out( $uid ) {
		return $this->has_session() && $this->_customer_id ? $this->_customer_id : $uid;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.