WordPress 是一个由数千名贡献者共同参与的大型项目,遵循最佳实践有助于保持代码库一致、可读,并使变更易于查找和理解。本文汇总了 WordPress 开发中应遵循的编码与文档规范,以确保代码长期保持整洁并具备良好文档支持。
WordPress is a big project with thousands of contributors. It’s important that best practices are followed so that the codebase is consistent and readable, and changes are easy to find and read, whether the code is five days old or five years old. What follows are a series of best practices to help keep WordPress code clean and well documented for years to come.