WordPress at Your Fingertips
function is not described

WC_Session_Handler::nonce_user_logged_out() public WC 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.

{} It's a method of the class: WC_Session_Handler{}

No Hooks.




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


Deprecated 5.3.0

Code of WC_Session_Handler::nonce_user_logged_out() WC 5.9.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;