WC_Session_Handler::nonce_user_logged_out()
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() WC Session Handler::nonce user logged out code WC 9.4.2
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; }