Coding standards Edit

Highlight: Follow WordPress coding standardsWordPress Coding Standards The Accessibility, PHP, JavaScript, CSS, HTML, etc. coding standards as published in the WordPress Coding Standards Handbook. May also refer to The collection of PHP_CodeSniffer rules (sniffs) used to format and validate PHP code developed for WordPress according to the PHP coding standards..

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: