Coding standards

WordPress Coding Standards

Official PHP_CodeSniffer rules that enforce WordPress PHP coding conventions.

Installation and compatibility

Type
Ruleset
PHP
>=7.2
License
MIT
Pricing
Free and open source
Install
composer require --dev wp-coding-standards/wpcs

Check the project documentation for configuration and version-specific requirements.

Strengths and limitations

ProApplies the official WordPress PHP conventions through the familiar PHPCS workflow.

ConIts conventions are specific to WordPress projects and require PHP_CodeSniffer.

Editorially reviewed

Repository activity

Activity: Active. Repository activity is a separate signal from suitability for your application.

Latest release
3.4.1
Last commit
Last release

Metadata checked: .

Explore related tools

Browse all coding standards. Tools in the same category can serve different workflows; compare their requirements and limitations.