WhatsApp does store metadata in plaintext which makes it susceptible to law enforcement or 3rd parties.
The contents of the messages are still end-to-end encrypted; that being said WhatsApp does default to backing up chats in the cloud and those could be subpoenaed by a government.