-
Book Overview & Buying
-
Table Of Contents
Professional WordPress - Third Edition
By :
One of the most important steps in creating a plugin is making sure it is secure from hacks and exploits. If a plugin contains security holes, it opens up the entire WordPress website for malicious hackers to wreak havoc. WordPress features some built-in security tools that you should always utilize to make sure your plugins and themes are as secure as can be.
Remember that all data external to your plugin code is suspect until proven valid. Always validate your data before displaying to the browser or inserting into the database to help keep your plugins secure from hacks and exploits. You’ll be using the mentioned escape and sanitize functions discussed in this section throughout the chapter.
Nonces, which stands for “number used once,” are...
Change the font size
Change margin width
Change background colour