onLogout( )


Registers a callback function to be called when a member logs out.

Use this function to run code after a member logs out, such as clearing cached data, updating the UI, or redirecting to a public page.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(): void Callback function to run when a member logs out.

Returns
Return Type:Unsubscribe
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?