A Quick Guide to Escaping PHP Data in WordPress
Adding custom code to your WordPress website is powerful. You can add virtually any type of functionality. That’s great – but it also comes with responsibility.
The output of your code must be secure. Otherwise, a malicious actor could take advantage. For example, they could execute a rogue JavaScript or PHP snippet to spread malware. It puts users at risk and is a mess to clean up.
Thankfully, WordPress provides a way to prevent these sorts of attacks. Escaping data output strips un
Read more »