The ideals behind the code format and standards being used for Opus Primus is to provide a human-readable layout and an easy to follow structure. Most of the basics are covered in the WordPress Coding Standards (since this is a WordPress theme). See the individual links to the Make WordPress Core Handbook for more details. Additional considerations will also be noted as either exceptions within the project or acceptable project alternatives.
- See the WordPress CSS Coding Standards as a benchmark.
- As well as using PHPDoc style documentation where applicable, comments should be made to indicate the termination of a block of code for easier delineation.
- All comments should begin with /** and end with */
- Single line comments (especially within PHP) using // are not acceptable for this project.