I asked google for you:
How do I appear offline on WhatsApp? Launch WhatsApp, and head to your Settings tab, located in the bottom right hand corner. Next, go to Chat Settings/Privacy > Advanced. Toggle the Last Seen Timestamp option to OFF, and then, select Nobody to disable the application timestamps. This method will allow you to continue in "offline" mode.