WC_Session_Handler::nonce_user_logged_out()publicWC 1.0

Deprecated from version 5.3.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

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

Method of the class: WC_Session_Handler{}

No Hooks.

Return

Int|String.

Usage

$WC_Session_Handler = new WC_Session_Handler();
$WC_Session_Handler->nonce_user_logged_out( $uid );
$uid(int) (required)
User ID.

Changelog

Deprecated since 5.3.0

WC_Session_Handler::nonce_user_logged_out() code WC 8.7.0

public function nonce_user_logged_out( $uid ) {
	wc_deprecated_function( 'WC_Session_Handler::nonce_user_logged_out', '5.3', 'WC_Session_Handler::maybe_update_nonce_user_logged_out' );

	return $this->has_session() && $this->_customer_id ? $this->_customer_id : $uid;
}