1.0.0 2018-12-14 16:09 UTC

This package is auto-updated.

Last update: 2020-05-15 17:45:59 UTC


These are our coding standards. There are many like these, but these are ours.

Our standards are basically Human Made's coding standards with a few tweaks:

  • Use camelCase for class methods & properties, UPPERCASE for class constants, snake_case everywhere else.
  • PHP Sessions are allowed.
  • A few more...


Pressbooks classes that extend WP Core classes will fail the PSR1.Methods.CamelCapsMethodName rule. In those cases, add something like this in your phpcs.ruleset.xml file:

<rule ref="PSR1.Methods.CamelCapsMethodName" >   

Link to docs: