Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 1.3 KB

File metadata and controls

24 lines (13 loc) · 1.3 KB

PHP

WordPress PHP Coding Standards

The WordPress PHP Coding Standards are not just about code style, but also encompass established best practices regarding interoperability, translatability, and security in the WordPress ecosystem, so, even when using a different code style, we recommend you still adhere to the WordPress Coding Standards in regard to these best practices.

Gutenberg Starter Repos

The new Gutenberg starter repos for themes and plugins have PHPCS baked in:

  • npm run lint:php - Lints all modified .php files.
  • npm run lint:php:all - Lints all .php files.

Older Repos

Responsive Framework specific documentation

Documentation

All files should be documented using PHPDoc. In PHPDoc, a DocBlock is a piece of documentation in your source code that informs you what the function of a certain class, method or other Structural Element is.

Process documentation can be added to our GitHub or WP-Docs pages.