Whitelist validation in WordPress
Far too often when doing code reviews, I see developers lean too heavily on sanitize_text_field(), using it as a sort of catchall for sanitizing data. That’s usually not a good idea. Data should be sanitized based on what sort of data you’re expecting. In this tutorial, I’m going to cover … Continue reading →