WordPress 5.2 new privacy page helpers which are available to use in themes or plugins.
1. Conditional query function
is_privacy_policy()
2. Page template
privacy-policy.php
3. Page body class
.privacy-policy
4. Menu item class
.menu-item-privacy-policy
We’ve tried our best to explain everything thoroughly, even though there’s so much information out there. If you found our writing helpful, we’d really appreciate it if you could buy us a coffee as a token of support.
Also, if you’re interested in learning more about WordPress, Javascript, HTML, CSS, and programming in general, you can subscribe to our MailChimp for some extra insights.