Professional WordPress Plugin Development

## Metadata
- Author: [[Brad Williams, Justin Tadlock, and John James Jacoby]] | [[3. Resources/Authors/Brad Williams, Justin Tadlock, and John James Jacoby|Brad Williams, Justin Tadlock, and John James Jacoby]]
- Full Title: Professional WordPress Plugin Development
- Category: #books
- Kindle: [Open in Kindle](https://www.amazon.com/dp/B0899MW9CP)
- Document Tags: [[WordPress]]
## Document Notes
## Highlights
- www.wiley.com/go/prowordpressdev2e ([Location 614](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=614))
- Class and method naming is one area where the core WordPress coding standards don't align with the PHP community. ([Location 1396](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=1396))
- the best method of naming class files is for the filename to match the class name exactly because it simplifies the autoloader code and keeps you from having to write a custom implementation. ([Location 1425](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=1425))
- The WordPress standard is to indent all code with tabs. ([Location 1443](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=1443))
- To avoid an error when checking option values, you should store true and false as 1 and 0. ([Location 1749](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=1749))
- It's good practice to create a separate variable early so that you can store data that has been validated or sanitized. ([Location 3110](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=3110))
- You must approach security at every point in the design of your plugin. ([Location 3699](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=3699))
- The Events Calendar Modern Tribe took a completely different approach to supporting the block‐based editor with its plugin called Events Calendar. It is completely owning the “add new event” experience on its own admin area pages, as shown in Figure 7‐10. These custom blocks are available only on Event Calendar's Add New page, and the content area comes preloaded with all of the blocks you ([Location 5466](https://readwise.io/to_kindle?action=open&asin=B0899MW9CP&location=5466))
## Related
- [[3. Resources/Readwise/Books/Learning PHP, MySQL & JavaScript|Learning PHP, MySQL & JavaScript]]
- [[3. Resources/Readwise/Books/Learning PHP|Learning PHP]]
- [[3. Resources/Readwise/Books/Responsive Design With WordPress|Responsive Design With WordPress]]
- [[3. Resources/Readwise/Books/WordPress Development in Depth|WordPress Development in Depth]]