Coding standards Edit

Note: Highlight: Follow WordPress coding standardsWordPress Coding Standards A collection of PHP_CodeSniffer rules (sniffs) to validate code developed for WordPress. It ensures code quality and adherence to coding conventions, especially the official standards for WordPress Core..

WordPress is a global project with thousands of contributors. It’s important that the 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. WordPress coding standards are a series of best practices to help keep WordPress code clean and well documented.

The purpose of WordPress coding standards is to create a baseline for collaboration and review within various aspects of the WordPress open source project and community, from core code to themes to plugins.

The coding standard guides for WordPress are available in the WordPress coding standards handbook:

Last updated: